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

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


The following commit(s) were added to refs/heads/master by this push:
     new e5fdcb4f4 IMPALA-13091: 
query_test.test_iceberg.TestIcebergV2Table.test_metadata_tables fails on an 
expected constant
e5fdcb4f4 is described below

commit e5fdcb4f4b7e2f37e5f7bb357eede8092de8f429
Author: Daniel Becker <[email protected]>
AuthorDate: Fri May 17 12:43:39 2024 +0200

    IMPALA-13091: 
query_test.test_iceberg.TestIcebergV2Table.test_metadata_tables fails on an 
expected constant
    
    IMPALA-13079 added a test in iceberg-metadata-tables.test that included
    assertions about values that can change across builds, e.g. file sizes,
    which caused test failures.
    
    This commit fixes it by doing two things:
    1. narrowing down the result set of the query to the column that the
       test is really about - this removes some of the problematic values
    2. using regexes for the remaining problematic values.
    
    Change-Id: Ic056079eed87a68afa95cd111ce2037314cd9620
    Reviewed-on: http://gerrit.cloudera.org:8080/21440
    Tested-by: Impala Public Jenkins <[email protected]>
    Reviewed-by: Riza Suminto <[email protected]>
---
 .../functional-query/queries/QueryTest/iceberg-metadata-tables.test | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/testdata/workloads/functional-query/queries/QueryTest/iceberg-metadata-tables.test
 
b/testdata/workloads/functional-query/queries/QueryTest/iceberg-metadata-tables.test
index 290848be7..cca52f8af 100644
--- 
a/testdata/workloads/functional-query/queries/QueryTest/iceberg-metadata-tables.test
+++ 
b/testdata/workloads/functional-query/queries/QueryTest/iceberg-metadata-tables.test
@@ -837,11 +837,11 @@ STRING,DATE,DATE
 # TODO IMPALA-13080: Add DECIMAL.
 ####
 ---- QUERY
-select * from functional_parquet.iceberg_metadata_alltypes.`files`;
+select readable_metrics from 
functional_parquet.iceberg_metadata_alltypes.`files`;
 ---- RESULTS
-0,regex:'.*\.parquet','PARQUET',0,3,3648,'{1:32,2:63,3:71,4:43,5:55,6:47,7:39,8:58,9:47,13:63,14:96,15:75,16:78}','{1:3,2:3,3:3,4:3,5:3,6:3,7:3,8:3,9:3,13:3,14:6,15:6,16:6}','{1:1,2:0,3:0,4:0,5:0,6:1,7:1,8:1,9:1,13:0,14:0,15:0,16:0}','{16:0,4:1,5:1,14:0}','{1:"AA==",2:"AQAAAA==",3:"9v////////8=",4:"/+ZbLw==",5:"MAWO5C7/O6s=",6:"AFgLImsYBgA=",7:"kU0AAA==",8:"QSBzdHJpbmc=",9:"YmluMQ==",13:"av///w==",14:"fcOUJa1JwtQ=",16:"AAAAPw=="}','{1:"AQ==",2:"BQAAAA==",3:"lgAAAAAAAAA=",4:"qV/jWA==",5:"
 [...]
+regex:'{"arr.element":{"column_size":\d+,"value_count":6,"null_value_count":0,"nan_value_count":0,"lower_bound":-2e\+100,"upper_bound":20},"b":{"column_size":\d+,"value_count":3,"null_value_count":1,"nan_value_count":null,"lower_bound":false,"upper_bound":true},"bn":{"column_size":\d+,"value_count":3,"null_value_count":1,"nan_value_count":null,"lower_bound":"YmluMQ==","upper_bound":"YmluMg=="},"d":{"column_size":\d+,"value_count":3,"null_value_count":0,"nan_value_count":1,"lower_bound":-
 [...]
 ---- TYPES
-INT,STRING,STRING,INT,BIGINT,BIGINT,STRING,STRING,STRING,STRING,STRING,STRING,BINARY,STRING,STRING,INT,STRING
+STRING
 ====
 
 ####

Reply via email to