IMPALA-14406: Fix test_column_case_sensitivity for newer Iceberg versions

New test introduced in IMPALA-14290 depends on the Iceberg versions,
because newer ones (e.g. 1.5.2) will show

{"start_time_month":"646","end_time_day":"19916"}

instead of

{"start_time_day":null,"end_time_month":null,"start_time_month":"646","end_time_day":"19916"}

The test now accepts both cases.

Testing:
 * ran query_test/test_iceberg.py with both Iceberg 1.3.1 and 1.5.2

Change-Id: I17e368ac043d1fbf80a78dcac6ab1be5a297b6ea
Reviewed-on: http://gerrit.cloudera.org:8080/23389
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
Daniel Vanko
2025-09-08 11:50:22 +02:00
committed by Impala Public Jenkins
parent 7fabd27096
commit 492b2b7f46

View File

@@ -46,9 +46,10 @@ SHOW PARTITIONS partition_case_insensitive;
---- LABELS
Partition, Number Of Rows, Number Of Files
---- RESULTS
'{"start_time_day":null,"end_time_month":null,"start_time_month":"646","end_time_day":"19916"}',1,1
'{"start_time_day":null,"end_time_month":null,"start_time_month":"647","end_time_day":"19916"}',1,1
'{"start_time_day":null,"end_time_month":null,"start_time_month":"647","end_time_day":"19947"}',2,2
# IMPALA-14406: in newer Iceberg versions (e.g. 1.5.2), partition values with null are not shown
regex:'{("start_time_day":null,"end_time_month":null,)?"start_time_month":"646","end_time_day":"19916"}',1,1
regex:'{("start_time_day":null,"end_time_month":null,)?"start_time_month":"647","end_time_day":"19916"}',1,1
regex:'{("start_time_day":null,"end_time_month":null,)?"start_time_month":"647","end_time_day":"19947"}',2,2
---- TYPES
STRING, BIGINT, BIGINT
====