From 6e1908b43ed5080cf7750605917c976856a05ea1 Mon Sep 17 00:00:00 2001 From: danhuawang Date: Wed, 13 Nov 2024 17:00:21 +0800 Subject: [PATCH] use gt_ prefix for schema --- .../testsets/hive/00008_decimal.sql | 16 +++++++------- .../testsets/hive/00009_array.sql | 20 ++++++++--------- .../testsets/hive/00010_map.sql | 14 ++++++------ .../testsets/hive/00011_row.sql | 22 +++++++++---------- .../testsets/hive/00012_format.sql | 18 +++++++-------- 5 files changed, 45 insertions(+), 45 deletions(-) diff --git a/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00008_decimal.sql b/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00008_decimal.sql index 2759217c7d..7901ea41bc 100644 --- a/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00008_decimal.sql +++ b/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00008_decimal.sql @@ -1,6 +1,6 @@ -CREATE SCHEMA gt_hive.decimal_db1; +CREATE SCHEMA gt_hive.gt_decimal_db1; -USE gt_hive.decimal_db1; +USE gt_hive.gt_decimal_db1; CREATE TABLE test_decimal_bounds (amount DECIMAL(10, 2)); @@ -44,14 +44,14 @@ INSERT INTO test_decimal_nulls VALUES (NULL), (123.45), (NULL); SELECT * FROM test_decimal_nulls; -DROP TABLE gt_hive.decimal_db1.test_decimal_bounds; +DROP TABLE gt_hive.gt_decimal_db1.test_decimal_bounds; -DROP TABLE gt_hive.decimal_db1.test_decimal_aggregation; +DROP TABLE gt_hive.gt_decimal_db1.test_decimal_aggregation; -DROP TABLE gt_hive.decimal_db1.test_decimal_arithmetic; +DROP TABLE gt_hive.gt_decimal_db1.test_decimal_arithmetic; -DROP TABLE gt_hive.decimal_db1.test_decimal_max_min; +DROP TABLE gt_hive.gt_decimal_db1.test_decimal_max_min; -DROP TABLE gt_hive.decimal_db1.test_decimal_nulls; +DROP TABLE gt_hive.gt_decimal_db1.test_decimal_nulls; -DROP SCHEMA gt_hive.decimal_db1; \ No newline at end of file +DROP SCHEMA gt_hive.gt_decimal_db1; \ No newline at end of file diff --git a/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00009_array.sql b/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00009_array.sql index 539eba6c7f..77a60ea2d5 100644 --- a/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00009_array.sql +++ b/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00009_array.sql @@ -1,6 +1,6 @@ -CREATE SCHEMA gt_hive.array_db1; +CREATE SCHEMA gt_hive.gt_array_db1; -USE gt_hive.array_db1; +USE gt_hive.gt_array_db1; CREATE TABLE test_array_basic (int_array ARRAY(INTEGER)); @@ -48,18 +48,18 @@ INSERT INTO test_nested_array VALUES (ARRAY[ARRAY['a', 'b'], ARRAY['c', 'd']]); SELECT nested_array FROM test_nested_array; -DROP TABLE gt_hive.array_db1.test_array_basic; +DROP TABLE gt_hive.gt_array_db1.test_array_basic; -DROP TABLE gt_hive.array_db1.test_array_access; +DROP TABLE gt_hive.gt_array_db1.test_array_access; -DROP TABLE gt_hive.array_db1.test_array_concat; +DROP TABLE gt_hive.gt_array_db1.test_array_concat; -DROP TABLE gt_hive.array_db1.test_array_sort; +DROP TABLE gt_hive.gt_array_db1.test_array_sort; -DROP TABLE gt_hive.array_db1.test_array_nulls; +DROP TABLE gt_hive.gt_array_db1.test_array_nulls; -DROP TABLE gt_hive.array_db1.test_array_agg; +DROP TABLE gt_hive.gt_array_db1.test_array_agg; -DROP TABLE gt_hive.array_db1.test_nested_array; +DROP TABLE gt_hive.gt_array_db1.test_nested_array; -DROP SCHEMA gt_hive.array_db1; \ No newline at end of file +DROP SCHEMA gt_hive.gt_array_db1; \ No newline at end of file diff --git a/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00010_map.sql b/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00010_map.sql index 53fda0c774..bbd89b92bc 100644 --- a/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00010_map.sql +++ b/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00010_map.sql @@ -1,6 +1,6 @@ -CREATE SCHEMA gt_hive.map_db1; +CREATE SCHEMA gt_hive.gt_map_db1; -USE gt_hive.map_db1; +USE gt_hive.gt_map_db1; CREATE TABLE test_map_nulls (string_map MAP(VARCHAR, VARCHAR)); @@ -38,12 +38,12 @@ INSERT INTO test_map_aggregation VALUES (MAP(ARRAY['a', 'b'], ARRAY[1, 2])), (MA SELECT map_data['a'] AS key_a, SUM(map_data['b']) AS sum_b FROM test_map_aggregation GROUP BY map_data['a'] ORDER BY key_a; -DROP TABLE gt_hive.map_db1.test_map_nulls; +DROP TABLE gt_hive.gt_map_db1.test_map_nulls; -DROP TABLE gt_hive.map_db1.test_map_types; +DROP TABLE gt_hive.gt_map_db1.test_map_types; -DROP TABLE gt_hive.map_db1.test_map_complex; +DROP TABLE gt_hive.gt_map_db1.test_map_complex; -DROP TABLE gt_hive.map_db1.test_map_aggregation; +DROP TABLE gt_hive.gt_map_db1.test_map_aggregation; -DROP SCHEMA gt_hive.map_db1; \ No newline at end of file +DROP SCHEMA gt_hive.gt_map_db1; \ No newline at end of file diff --git a/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00011_row.sql b/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00011_row.sql index 828d4dfba5..14c49edae7 100644 --- a/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00011_row.sql +++ b/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00011_row.sql @@ -1,6 +1,6 @@ -CREATE SCHEMA gt_hive.row_db1; +CREATE SCHEMA gt_hive.gt_row_db1; -USE gt_hive.row_db1; +USE gt_hive.gt_row_db1; CREATE TABLE test_row_basic (person ROW(id INTEGER, name VARCHAR)); @@ -72,20 +72,20 @@ INSERT INTO test_row_basic SELECT ROW(id, name) FROM source_tb1; SELECT person.id, COUNT(*) FROM test_row_basic GROUP BY person.id ORDER BY person.id; -DROP TABLE gt_hive.row_db1.test_row_basic; +DROP TABLE gt_hive.gt_row_db1.test_row_basic; -DROP TABLE gt_hive.row_db1.source_tb1; +DROP TABLE gt_hive.gt_row_db1.source_tb1; -DROP TABLE gt_hive.row_db1.test_nested_row; +DROP TABLE gt_hive.gt_row_db1.test_nested_row; -DROP TABLE gt_hive.row_db1.test_mixed_row; +DROP TABLE gt_hive.gt_row_db1.test_mixed_row; -DROP TABLE gt_hive.row_db1.source_tb2; +DROP TABLE gt_hive.gt_row_db1.source_tb2; -DROP TABLE gt_hive.row_db1.source_tb3; +DROP TABLE gt_hive.gt_row_db1.source_tb3; -DROP TABLE gt_hive.row_db1.test_row_in_array_map; +DROP TABLE gt_hive.gt_row_db1.test_row_in_array_map; -DROP TABLE gt_hive.row_db1.source_tb5; +DROP TABLE gt_hive.gt_row_db1.source_tb5; -DROP SCHEMA gt_hive.row_db1; \ No newline at end of file +DROP SCHEMA gt_hive.gt_row_db1; \ No newline at end of file diff --git a/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00012_format.sql b/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00012_format.sql index fbd8b83cb6..d36a4b2caf 100644 --- a/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00012_format.sql +++ b/trino-connector/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00012_format.sql @@ -1,6 +1,6 @@ -CREATE SCHEMA gt_hive.format_db1; +CREATE SCHEMA gt_hive.gt_format_db1; -USE gt_hive.format_db1; +USE gt_hive.gt_format_db1; CREATE TABLE storage_formats_orc ( c_boolean boolean, @@ -161,16 +161,16 @@ INSERT INTO storage_formats_avro VALUES (true,127,32767,2147483647,9223372036854 SELECT * FROM storage_formats_avro; -DROP TABLE gt_hive.format_db1.storage_formats_orc; +DROP TABLE gt_hive.gt_format_db1.storage_formats_orc; -DROP TABLE gt_hive.format_db1.storage_formats_textfile; +DROP TABLE gt_hive.gt_format_db1.storage_formats_textfile; -DROP TABLE gt_hive.format_db1.storage_formats_parquet; +DROP TABLE gt_hive.gt_format_db1.storage_formats_parquet; -DROP TABLE gt_hive.format_db1.storage_formats_rcfile; +DROP TABLE gt_hive.gt_format_db1.storage_formats_rcfile; -DROP TABLE gt_hive.format_db1.storage_formats_sequencefile; +DROP TABLE gt_hive.gt_format_db1.storage_formats_sequencefile; -DROP TABLE gt_hive.format_db1.storage_formats_avro; +DROP TABLE gt_hive.gt_format_db1.storage_formats_avro; -DROP SCHEMA gt_hive.format_db1; +DROP SCHEMA gt_hive.gt_format_db1;