Files
impala/testdata/workloads/functional-query/queries/QueryTest/iceberg-profile.test
Fang-Yu Rao efc627d050 IMPALA-10158: Set timezone to UTC for Iceberg-related E2E tests
We found that the tests of test_iceberg_query and test_iceberg_profile
fail after the patch for IMPALA-9741 has been merged and that it is due
to the default timezone of Impala not being UTC. This patch fixes the
issue by adding "SET TIMEZONE=UTC;" before those test queries are run.

Testing:
 - Verified in a local development environment that the tests of
   test_iceberg_query and test_iceberg_profile could pass after applying
   this patch.

Change-Id: Ie985519e8ded04f90465e141488bd2dda78af6c3
Reviewed-on: http://gerrit.cloudera.org:8080/16425
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2020-09-09 13:26:42 +00:00

22 lines
649 B
Plaintext

====
---- QUERY
# This query will filter files by partition column predicate
SET TIMEZONE=UTC;
select * from functional_parquet.iceberg_partitioned
where event_time > to_timestamp('2020-01-01 09:00:00','yyyy-MM-dd HH:mm:ss')
---- RUNTIME_PROFILE
aggregation(SUM, RowsRead): 6
====
---- QUERY
# This query will scan a file which id = 1, filter by predicate for parquet file
select * from functional_parquet.iceberg_partitioned where id = 1
---- RUNTIME_PROFILE
aggregation(SUM, RowsRead): 1
====
---- QUERY
# This query will do a full scan
select * from functional_parquet.iceberg_partitioned
---- RUNTIME_PROFILE
aggregation(SUM, RowsRead): 20
====