Files
impala/testdata/workloads/functional-query/queries/QueryTest/iceberg-old-fileformat.test
Zoltan Borok-Nagy 3e75a17730 IMPALA-10957: test_iceberg_query is flaky
In iceberg-query.test we create an external Iceberg table and
set the table property 'iceberg.file_format' to check
backward-compatibility with earlier versions. At the end we
delete the table. The table deletion makes the test fail
sporadically during GVO.

Seems like the bug is caused by the parallel execution of this test.
The test didn't use a unique database, therefore dropping the table
could affect other executions of the same test. This patch puts
the relevant queries to their own .test file using a unique
database.

Change-Id: I16e558ae5add48d8a39bd89277a0256f534ba65f
Reviewed-on: http://gerrit.cloudera.org:8080/17929
Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2021-10-18 19:32:29 +00:00

58 lines
1.7 KiB
Plaintext

====
---- QUERY
CREATE EXTERNAL TABLE IF NOT EXISTS iceberg_partitioned_orc_external_old_fileformat
STORED AS ICEBERG
TBLPROPERTIES(
'iceberg.file_format'='orc',
'iceberg.catalog'='hadoop.catalog',
'iceberg.catalog_location'='/test-warehouse/iceberg_test/hadoop_catalog/iceberg_partitioned_orc',
'iceberg.table_identifier'='functional_parquet.iceberg_partitioned_orc'
);
ALTER TABLE iceberg_partitioned_orc_external_old_fileformat
UNSET TBLPROPERTIES IF EXISTS ('write.format.default');
DESCRIBE FORMATTED iceberg_partitioned_orc_external_old_fileformat;
---- RESULTS: VERIFY_IS_SUBSET
'Location: ','$NAMENODE/test-warehouse/iceberg_test/hadoop_catalog/iceberg_partitioned_orc/functional_parquet/iceberg_partitioned_orc','NULL'
'','iceberg.catalog_location','/test-warehouse/iceberg_test/hadoop_catalog/iceberg_partitioned_orc'
'','iceberg.table_identifier','functional_parquet.iceberg_partitioned_orc'
'','iceberg.file_format','orc '
'','iceberg.catalog ','hadoop.catalog '
---- RESULTS: VERIFY_IS_NOT_IN
'','write.format.default','orc '
---- TYPES
string, string, string
====
---- QUERY
SELECT * FROM iceberg_partitioned_orc_external_old_fileformat;
---- RESULTS
7,'Lisa','download'
16,'Lisa','download'
13,'Alan','click'
10,'Alan','click'
19,'Alex','view'
1,'Alex','view'
4,'Alex','view'
20,'Alex','view'
14,'Lisa','download'
5,'Lisa','download'
15,'Alex','view'
18,'Alan','click'
9,'Alan','click'
17,'Alex','view'
12,'Alan','click'
2,'Lisa','download'
8,'Lisa','download'
11,'Alex','view'
6,'Alex','view'
3,'Alan','click'
---- TYPES
INT, STRING, STRING
====
---- QUERY
SELECT count(*) FROM iceberg_partitioned_orc_external_old_fileformat;
---- RESULTS
20
---- TYPES
BIGINT
====