Files
impala/testdata/workloads/functional-query/queries/QueryTest/iceberg-virtual-columns.test
LPL f617e36487 IMPALA-11711: Virtual columns should be skipped in 'FileMetadataUtils::AddIcebergColumns'
In the 'FileMetadataUtils::AddIcebergColumns' method, when the slot is
a virtual column, it should be skipped directly. That may affect that
when we query the Iceberg v2 table (the first column is a partition
column of bool type), wrong position-delete result is given.

Testing:
 - Add e2e tests
 - Locally tested the result of The Position-based Iceberg tables

Change-Id: I58faf3df6ae8a5bcabb1d2ac9f11a6fbcd74bc24
Reviewed-on: http://gerrit.cloudera.org:8080/19223
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2022-11-10 00:51:50 +00:00

39 lines
1.1 KiB
Plaintext

====
---- QUERY
create table ice_tbl (
col_b boolean,
col_i int,
col_bi bigint,
col_str string,
col_ts timestamp,
col_dt date
) partitioned by spec (col_b) stored as iceberg;
---- RESULTS
'Table has been created.'
====
---- QUERY
insert into
ice_tbl
values
(true, 0, 12345678900, 'Abc', '1800-01-01 00:00:00', DATE'1800-01-01'),
(false, 1, 12345678902, 'aBc', '1800-01-01 02:02:02', DATE'1800-01-01'),
(false, 3, 12345678907, 'abC', '1900-01-01 01:01:01', DATE'1900-01-01'),
(false, 5, 12345678908, '', '1900-01-01 02:02:02', DATE'1900-01-01');
select count(1) from ice_tbl;
---- RESULTS
4
---- TYPES
BIGINT
====
---- QUERY
select input__file__name, file__position from ice_tbl order by 1,2 desc;
---- LABELS
input__file__name, file__position
---- RESULTS
row_regex:'$NAMENODE/test-warehouse/$DATABASE.db/ice_tbl/data/col_b=false/.*.0.parq',2
row_regex:'$NAMENODE/test-warehouse/$DATABASE.db/ice_tbl/data/col_b=false/.*.0.parq',1
row_regex:'$NAMENODE/test-warehouse/$DATABASE.db/ice_tbl/data/col_b=false/.*.0.parq',0
row_regex:'$NAMENODE/test-warehouse/$DATABASE.db/ice_tbl/data/col_b=true/.*.0.parq',0
---- TYPES
STRING, BIGINT
====