This is an automated email from the ASF dual-hosted git repository.

joemcdonnell pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git

commit 458374e50be498f375f6da9cac7f2aef227181fb
Author: Zoltan Borok-Nagy <[email protected]>
AuthorDate: Wed Oct 9 10:38:25 2024 +0200

    IMPALA-13432: test_migrated_table_field_id_resolution_complex can fail with 
different Iceberg version
    
    test_migrated_table_field_id_resolution_complex queries metadata table
    `partitions`. The schema of that table depends on the Iceberg
    version. This patch fixes the problem by not issuing 'select *' against
    `partitions`, but only selecting a subset of columns available
    in Iceberg 1.3.1.
    
    Change-Id: I4cff3d868a8b4c2f42a11780372cb1b550370c14
    Reviewed-on: http://gerrit.cloudera.org:8080/21910
    Reviewed-by: Impala Public Jenkins <[email protected]>
    Tested-by: Impala Public Jenkins <[email protected]>
---
 ...migrated-table-field-id-resolution-complex.test | 24 +++++++++++++---------
 1 file changed, 14 insertions(+), 10 deletions(-)

diff --git 
a/testdata/workloads/functional-query/queries/QueryTest/iceberg-migrated-table-field-id-resolution-complex.test
 
b/testdata/workloads/functional-query/queries/QueryTest/iceberg-migrated-table-field-id-resolution-complex.test
index a184a1bb3..edc578849 100644
--- 
a/testdata/workloads/functional-query/queries/QueryTest/iceberg-migrated-table-field-id-resolution-complex.test
+++ 
b/testdata/workloads/functional-query/queries/QueryTest/iceberg-migrated-table-field-id-resolution-complex.test
@@ -242,22 +242,26 @@ select * from array_struct_table_test_orc;
 INT, STRING, STRING, STRING
 ====
 ---- QUERY
-select * from $DATABASE.array_struct_table_test.`partitions`;
+select `partition`, spec_id, record_count, file_count,
+       position_delete_record_count, position_delete_file_count
+from $DATABASE.array_struct_table_test.`partitions`;
 ---- RESULTS
-'{"result_date":null,"id":4,"name":"Test 4"}',1,1,1,0,0,0,0
-'{"result_date":"2024-08-26","id":null,"name":null}',0,2,1,0,0,0,0
-'{"result_date":null,"id":3,"name":"Test 3"}',1,1,1,0,0,0,0
+'{"result_date":null,"id":4,"name":"Test 4"}',1,1,1,0,0
+'{"result_date":"2024-08-26","id":null,"name":null}',0,2,1,0,0
+'{"result_date":null,"id":3,"name":"Test 3"}',1,1,1,0,0
 ---- TYPES
-STRING, INT, BIGINT, INT, BIGINT, INT, BIGINT, INT
+STRING, INT, BIGINT, INT, BIGINT, INT
 ====
 ---- QUERY
-select * from $DATABASE.array_struct_table_test_orc.`partitions`;
+select `partition`, spec_id, record_count, file_count,
+       position_delete_record_count, position_delete_file_count
+from $DATABASE.array_struct_table_test_orc.`partitions`;
 ---- RESULTS
-'{"result_date":null,"id":4,"name":"Test 4"}',1,1,1,0,0,0,0
-'{"result_date":"2024-08-26","id":null,"name":null}',0,2,1,0,0,0,0
-'{"result_date":null,"id":3,"name":"Test 3"}',1,1,1,0,0,0,0
+'{"result_date":null,"id":4,"name":"Test 4"}',1,1,1,0,0
+'{"result_date":"2024-08-26","id":null,"name":null}',0,2,1,0,0
+'{"result_date":null,"id":3,"name":"Test 3"}',1,1,1,0,0
 ---- TYPES
-STRING, INT, BIGINT, INT, BIGINT, INT, BIGINT, INT
+STRING, INT, BIGINT, INT, BIGINT, INT
 ====
 ---- QUERY
 select teststeps.step_description, teststeps.step_number from 
all_part_cols_stored_parquet m, m.teststeps;

Reply via email to