Hello friends, another Day reporting other bug, steps to reproduce:
create iceberg table using CTA for example
CREATE TABLE lake.tab1 as select col1, col2 from space.tab1_vds
add column
ALTER TABLE lake.tab1 ADD COLUMN (COL3 VARCHAR) BEFORE col2
ERROR 1: BEFORE KEYWORD doesn’t work
insert new data
INSERT INTO lake.tab1 (col1, col3, col2) as select col1, col3, col2 from space.tab1_vds
ERROR 2: by some reason dremio reorganizate columns definition so table order columns not match select columns, even I put in order in sql sentence, Dremio changes and fails
please @ben or @steven with this post are 6 bugs reported and confirmed, thank you by your attention to this post and past 5 post,
We continue working to build this amazing tool.
I start to consider myself part of the QA team
I submit in same order in insert columns enumeration and in the select (see 1 and 2 numbers in pic) but dremio reorder columns in the insert part (3 and 4) which contradicts than docuemntation saids:
If column names are specified, data is inserted in the given column order, and columns not listed are populated as NULL.
instead are doing
If column names are not specified, data is inserted in the column order of the table.
Thanks for the doc pointer - I always forget to check both Software and Cloud. I’ll file a ticket to get documentation corrected and will talk to the team about ordering.
as you can see in table “reclasificada” field is the last column if you try make insert enumarate columns in distinct order for example “reclasificada” before “fecha_carga” Dremio fails because it reorder columns and fail