You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-5438 COUNT() in math causes SEGV
This commit is contained in:
9
mysql-test/columnstore/bugfixes/mcol-5438.result
Normal file
9
mysql-test/columnstore/bugfixes/mcol-5438.result
Normal file
@ -0,0 +1,9 @@
|
||||
DROP DATABASE IF EXISTS `mcol-5438`;
|
||||
CREATE DATABASE `mcol-5438`;
|
||||
USE `mcol-5438`;
|
||||
CREATE TABLE cs1 (d DECIMAL(38))ENGINE=COLUMNSTORE;
|
||||
INSERT INTO cs1 VALUES (42);
|
||||
SELECT (COUNT(CASE WHEN d IN(42,4) THEN 1 ELSE 0 END) * 100/SUM(1))*0 from cs1;
|
||||
(COUNT(CASE WHEN d IN(42,4) THEN 1 ELSE 0 END) * 100/SUM(1))*0
|
||||
0.0000
|
||||
DROP DATABASE `mcol-5438`;
|
13
mysql-test/columnstore/bugfixes/mcol-5438.test
Normal file
13
mysql-test/columnstore/bugfixes/mcol-5438.test
Normal file
@ -0,0 +1,13 @@
|
||||
-- source ../include/have_columnstore.inc
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS `mcol-5438`;
|
||||
--enable_warnings
|
||||
CREATE DATABASE `mcol-5438`;
|
||||
USE `mcol-5438`;
|
||||
|
||||
CREATE TABLE cs1 (d DECIMAL(38))ENGINE=COLUMNSTORE;
|
||||
INSERT INTO cs1 VALUES (42);
|
||||
SELECT (COUNT(CASE WHEN d IN(42,4) THEN 1 ELSE 0 END) * 100/SUM(1))*0 from cs1;
|
||||
|
||||
DROP DATABASE `mcol-5438`;
|
Reference in New Issue
Block a user