You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-4652 Fixes for wide-decimal support in bulk insert operations
Previously cpimport didn't send wide min/max-es talking to BRM
This commit is contained in:
committed by
Roman Nozdrin
parent
646ffb6f95
commit
04d5b55c37
@ -0,0 +1,18 @@
|
||||
DROP DATABASE IF EXISTS mcol4652;
|
||||
CREATE DATABASE mcol4652;
|
||||
USE mcol4652;
|
||||
create table customer (
|
||||
c_custkey decimal(38),
|
||||
c_name varchar (25),
|
||||
c_address varchar (40),
|
||||
c_nationkey int,
|
||||
c_phone char (15),
|
||||
c_acctbal decimal(12,2),
|
||||
c_mktsegment char (10),
|
||||
c_comment varchar (117)
|
||||
) engine=columnstore;
|
||||
LOAD DATA LOCAL infile 'MTR_SUITE_DIR/../std_data/100Krows.dat' INTO TABLE customer FIELDS TERMINATED BY '|';
|
||||
SELECT e.min_value, e.max_value FROM information_schema.columnstore_extents e, information_schema.columnstore_columns c where e.object_id = c.object_id and column_name = 'c_custkey';
|
||||
min_value max_value
|
||||
0 32767
|
||||
DROP DATABASE mcol4652;
|
@ -0,0 +1,26 @@
|
||||
-- source ../include/have_columnstore.inc
|
||||
|
||||
--disable_warnings
|
||||
DROP DATABASE IF EXISTS mcol4652;
|
||||
--enable_warnings
|
||||
|
||||
CREATE DATABASE mcol4652;
|
||||
USE mcol4652;
|
||||
|
||||
create table customer (
|
||||
c_custkey decimal(38),
|
||||
c_name varchar (25),
|
||||
c_address varchar (40),
|
||||
c_nationkey int,
|
||||
c_phone char (15),
|
||||
c_acctbal decimal(12,2),
|
||||
c_mktsegment char (10),
|
||||
c_comment varchar (117)
|
||||
) engine=columnstore;
|
||||
|
||||
--replace_result $MTR_SUITE_DIR MTR_SUITE_DIR
|
||||
--disable_warnings
|
||||
--eval LOAD DATA LOCAL infile '$MTR_SUITE_DIR/../std_data/100Krows.dat' INTO TABLE customer FIELDS TERMINATED BY '|'
|
||||
--enable_warnings
|
||||
SELECT e.min_value, e.max_value FROM information_schema.columnstore_extents e, information_schema.columnstore_columns c where e.object_id = c.object_id and column_name = 'c_custkey';
|
||||
DROP DATABASE mcol4652;
|
Reference in New Issue
Block a user