I have a new installation of MariaDB 10.5.8 which includes Columnstore as a plugin. I'm facing an issue when I try to insert rows into a columnstore table from a select statement. I have narrowed it down to a test case that consistently replicates the problem.
If I create the table below:
CREATE TABLE `test_table` (
`id` INT(11) NULL DEFAULT NULL,
`code` VARCHAR(1) NULL DEFAULT NULL,
`enter_dt` DATE NULL DEFAULT NULL
)
ENGINE=Columnstore
and run the following insert command:
INSERT INTO test_table(id,code,enter_dt)
SELECT 1,'M',date(NOW()) FROM dual;
I get the error:
However, if the VARCHAR column comes after the DATE column, the error goes away:
CREATE TABLE `test_table` (
`id` INT(11) NULL DEFAULT NULL,
`enter_dt` DATE NULL DEFAULT NULL,
`code` VARCHAR(1) NULL DEFAULT NULL
)
ENGINE=Columnstore
Has anyone experience a similar issue?