1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-2044 Test sources made more resilient

This commit is contained in:
Sergey Zefirov
2021-07-05 15:08:48 +03:00
parent 4d265472ee
commit 69eec2cc0f
182 changed files with 1296 additions and 2008 deletions

View File

@ -0,0 +1,703 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
77 44
drop table t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 33
drop table t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
77 44
drop table t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 33
drop table t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
77 44
drop table t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 33
drop table t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
77 44
drop table t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 33
drop table t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
NULL NULL
drop table t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
77 44
drop table t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 33
drop table t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
77 44
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 33
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
77 44
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 33
drop table t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
77 44
drop table t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 33
drop table t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
77 44
drop table t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 33
drop table t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
delete from t where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop table t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
0 -1
drop table t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
77 44
drop table t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 33
drop table t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,11 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
77 44
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 33
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,11 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
77 44
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 33
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,11 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
77 44
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 33
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,11 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
77 44
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 33
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,11 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
NULL NULL
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
77 44
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 33
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,11 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
77 44
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 33
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,11 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
77 44
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 33
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,11 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
77 44
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 33
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,11 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
77 44
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 33
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,13 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
delete from t where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
delete from t where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -1,11 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=66;
insert into t(x) values (77), (22);
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
0 -1
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=77 where x=66;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
77 44
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=33 where x=44;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 33
drop database test_ranges;

View File

@ -1,10 +0,0 @@
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66);
update t set x=65 where x=55;
select max_value, min_value from information_schema.columnstore_extents;
max_value min_value
66 44
drop database test_ranges;

View File

@ -0,0 +1,593 @@
# tests updates that sets invalid range when we set value at max boundary that is less than max.
--disable_warnings
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
--enable_warnings
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=66; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
delete from t where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=66; # range must drop to invalid
insert into t(x) values (77), (22); # range must stay invalid.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend max range, for values at max.
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=77 where x=66; # range must be 44..77
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend range to new min value.
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=33 where x=44; # range must be 33..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=66; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
delete from t where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=66; # range must drop to invalid
insert into t(x) values (77), (22); # range must stay invalid.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend max range, for values at max.
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=77 where x=66; # range must be 44..77
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend range to new min value.
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=33 where x=44; # range must be 33..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x decimal(38)) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=66; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
delete from t where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=66; # range must drop to invalid
insert into t(x) values (77), (22); # range must stay invalid.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend max range, for values at max.
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=77 where x=66; # range must be 44..77
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend range to new min value.
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=33 where x=44; # range must be 33..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x integer) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=66; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
delete from t where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=66; # range must drop to invalid
insert into t(x) values (77), (22); # range must stay invalid.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend max range, for values at max.
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=77 where x=66; # range must be 44..77
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend range to new min value.
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=33 where x=44; # range must be 33..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x smallint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=66; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
delete from t where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=66; # range must drop to invalid
insert into t(x) values (77), (22); # range must stay invalid.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend max range, for values at max.
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=77 where x=66; # range must be 44..77
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend range to new min value.
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=33 where x=44; # range must be 33..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x tinyint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=66; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
delete from t where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=66; # range must drop to invalid
insert into t(x) values (77), (22); # range must stay invalid.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend max range, for values at max.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=77 where x=66; # range must be 44..77
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend range to new min value.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=33 where x=44; # range must be 33..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=66; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
delete from t where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=66; # range must drop to invalid
insert into t(x) values (77), (22); # range must stay invalid.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend max range, for values at max.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=77 where x=66; # range must be 44..77
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend range to new min value.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=33 where x=44; # range must be 33..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x bigint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=66; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
delete from t where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=66; # range must drop to invalid
insert into t(x) values (77), (22); # range must stay invalid.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend max range, for values at max.
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=77 where x=66; # range must be 44..77
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend range to new min value.
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=33 where x=44; # range must be 33..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x integer unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=66; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
delete from t where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=66; # range must drop to invalid
insert into t(x) values (77), (22); # range must stay invalid.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend max range, for values at max.
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=77 where x=66; # range must be 44..77
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend range to new min value.
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=33 where x=44; # range must be 33..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x smallint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
delete from t where x=66; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
delete from t where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=66; # range must drop to invalid
insert into t(x) values (77), (22); # range must stay invalid.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that sets invalid range when we set value at max boundary that is less than max.
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must drop to invalid
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that range when we updating min value to value that is bigger than min.
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must be invalid now.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend max range, for values at max.
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=77 where x=66; # range must be 44..77
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates that extend range to new min value.
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=33 where x=44; # range must be 33..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop table t;
# tests updates within range.
create table t(x tinyint unsigned) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=55; # range must stay 44..66.
select e.max_value, e.min_value from information_schema.columnstore_extents e, information_schema.columnstore_columns c where c.table_schema='test_ranges' and c.table_name='t' and c.column_name='x' and c.object_id=e.object_id;
drop database test_ranges;

View File

@ -1,13 +0,0 @@
# tests updates that sets invalid range when we set value at max boundary that is less than max.
--disable_warnings
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
--enable_warnings
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select max_value, min_value from information_schema.columnstore_extents;
delete from t where x=44; # range must drop to invalid
select max_value, min_value from information_schema.columnstore_extents;
drop database test_ranges;

View File

@ -1,13 +0,0 @@
# tests updates that range when we updating min value to value that is bigger than min.
--disable_warnings
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
--enable_warnings
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
select max_value, min_value from information_schema.columnstore_extents;
delete from t where x=66; # range must be invalid now.
select max_value, min_value from information_schema.columnstore_extents;
drop database test_ranges;

View File

@ -1,11 +0,0 @@
# tests updates within range.
--disable_warnings
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
--enable_warnings
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
delete from t where x=55; # range must stay 44..66.
select max_value, min_value from information_schema.columnstore_extents;
drop database test_ranges;

View File

@ -1,12 +0,0 @@
# tests updates within range.
--disable_warnings
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
--enable_warnings
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=66; # range must drop to invalid
insert into t(x) values (77), (22); # range must stay invalid.
select max_value, min_value from information_schema.columnstore_extents;
drop database test_ranges;

View File

@ -1,11 +0,0 @@
# tests updates that sets invalid range when we set value at max boundary that is less than max.
--disable_warnings
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
--enable_warnings
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must drop to invalid
select max_value, min_value from information_schema.columnstore_extents;
drop database test_ranges;

View File

@ -1,12 +0,0 @@
# tests updates that range when we updating min value to value that is bigger than min.
--disable_warnings
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
--enable_warnings
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=65 where x=44; # range must be invalid now.
select max_value, min_value from information_schema.columnstore_extents;
drop database test_ranges;

View File

@ -1,11 +0,0 @@
# tests updates that extend max range, for values at max.
--disable_warnings
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
--enable_warnings
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=77 where x=66; # range must be 44..77
select max_value, min_value from information_schema.columnstore_extents;
drop database test_ranges;

View File

@ -1,11 +0,0 @@
# tests updates that extend range to new min value.
--disable_warnings
create database if not exists test_ranges;
use test_ranges;
drop table if exists t;
--enable_warnings
create table t(x bigint) engine=columnstore;
insert into t(x) values (44),(55),(66); # range must be 44..66.
update t set x=33 where x=44; # range must be 33..66.
select max_value, min_value from information_schema.columnstore_extents;
drop database test_ranges;

Some files were not shown because too many files have changed in this diff Show More