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
Merge pull request #1927 from denis0x0D/MCOL-4407
MCOL-4407 and condtion does not work when HWM > columnstore_string_san_threshold - 1
This commit is contained in:
32
mysql-test/columnstore/bugfixes/mcol-4407.result
Normal file
32
mysql-test/columnstore/bugfixes/mcol-4407.result
Normal file
@ -0,0 +1,32 @@
|
||||
DROP DATABASE IF EXISTS mcol_4407;
|
||||
CREATE DATABASE mcol_4407;
|
||||
USE mcol_4407;
|
||||
DROP TABLE IF EXISTS `sictable`;
|
||||
/* Bug when HWM > scan_threshold - 1 */
|
||||
set max_recursive_iterations=6282;
|
||||
CREATE TABLE `sictable`
|
||||
(
|
||||
`serialno` VARCHAR(20) NOT NULL
|
||||
)
|
||||
ENGINE=Columnstore
|
||||
DEFAULT CHARSET=utf8
|
||||
;
|
||||
INSERT INTO `sictable` (
|
||||
with recursive series as (
|
||||
select 1 as id union all
|
||||
select id +1 as id from series
|
||||
where id < 6281)
|
||||
select lpad(id,11,'0') from series);
|
||||
SELECT `serialno`
|
||||
FROM `sictable`
|
||||
WHERE `serialno` = '00000000029' AND `serialno` = '00000006256';
|
||||
serialno
|
||||
SELECT `serialno`
|
||||
FROM `sictable`
|
||||
WHERE `serialno` = '00000000029' AND `serialno` = '00000000029';
|
||||
serialno
|
||||
00000000029
|
||||
/* Default value */
|
||||
set max_recursive_iterations=1000;
|
||||
DROP TABLE `sictable`;
|
||||
DROP DATABASE mcol_4407;
|
44
mysql-test/columnstore/bugfixes/mcol-4407.test
Normal file
44
mysql-test/columnstore/bugfixes/mcol-4407.test
Normal file
@ -0,0 +1,44 @@
|
||||
--source ../include/have_columnstore.inc
|
||||
|
||||
-- disable_warnings
|
||||
DROP DATABASE IF EXISTS mcol_4407;
|
||||
-- enable_warnings
|
||||
|
||||
CREATE DATABASE mcol_4407;
|
||||
USE mcol_4407;
|
||||
|
||||
-- disable_warnings
|
||||
DROP TABLE IF EXISTS `sictable`;
|
||||
-- enable_warnings
|
||||
|
||||
/* Bug when HWM > scan_threshold - 1 */
|
||||
set max_recursive_iterations=6282;
|
||||
|
||||
CREATE TABLE `sictable`
|
||||
(
|
||||
`serialno` VARCHAR(20) NOT NULL
|
||||
)
|
||||
ENGINE=Columnstore
|
||||
DEFAULT CHARSET=utf8
|
||||
;
|
||||
|
||||
INSERT INTO `sictable` (
|
||||
with recursive series as (
|
||||
select 1 as id union all
|
||||
select id +1 as id from series
|
||||
where id < 6281)
|
||||
select lpad(id,11,'0') from series);
|
||||
|
||||
SELECT `serialno`
|
||||
FROM `sictable`
|
||||
WHERE `serialno` = '00000000029' AND `serialno` = '00000006256';
|
||||
|
||||
SELECT `serialno`
|
||||
FROM `sictable`
|
||||
WHERE `serialno` = '00000000029' AND `serialno` = '00000000029';
|
||||
|
||||
/* Default value */
|
||||
set max_recursive_iterations=1000;
|
||||
|
||||
DROP TABLE `sictable`;
|
||||
DROP DATABASE mcol_4407;
|
Reference in New Issue
Block a user