Skip to content

Commit

Permalink
use gt_ prefix for schema
Browse files Browse the repository at this point in the history
  • Loading branch information
danhuawang committed Nov 13, 2024
1 parent 80afaff commit 6e1908b
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 45 deletions.
Original file line number Diff line number Diff line change
@@ -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));

Expand Down Expand Up @@ -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;
DROP SCHEMA gt_hive.gt_decimal_db1;
Original file line number Diff line number Diff line change
@@ -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));

Expand Down Expand Up @@ -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;
DROP SCHEMA gt_hive.gt_array_db1;
Original file line number Diff line number Diff line change
@@ -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));

Expand Down Expand Up @@ -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;
DROP SCHEMA gt_hive.gt_map_db1;
Original file line number Diff line number Diff line change
@@ -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));

Expand Down Expand Up @@ -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;
DROP SCHEMA gt_hive.gt_row_db1;
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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;

0 comments on commit 6e1908b

Please sign in to comment.