Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#3641] improvement (trino-it): removed hdfs port in test result comparison (#3828)

Junshen Tao78ca91a8e675
diff --git a/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00002_alter_table.txt b/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00002_alter_table.txt
index d07f2e32e9..2d068f5b45 100644
--- a/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00002_alter_table.txt
+++ b/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00002_alter_table.txt
@@ -19,7 +19,7 @@ DROP COLUMN
COMMENT ''
WITH (
input_format = 'org.apache.hadoop.mapred.TextInputFormat',
- location = 'hdfs://%:9000/user/hive/warehouse/gt_db1.db/tb01',
+ location = 'hdfs://%/user/hive/warehouse/gt_db1.db/tb01',
num_files = '0',
output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
@@ -37,7 +37,7 @@ RENAME COLUMN
COMMENT ''
WITH (
input_format = 'org.apache.hadoop.mapred.TextInputFormat',
- location = 'hdfs://%:9000/user/hive/warehouse/gt_db1.db/tb01',
+ location = 'hdfs://%/user/hive/warehouse/gt_db1.db/tb01',
num_files = '0',
output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
@@ -55,7 +55,7 @@ SET COLUMN TYPE
COMMENT ''
WITH (
input_format = 'org.apache.hadoop.mapred.TextInputFormat',
- location = 'hdfs://%:9000/user/hive/warehouse/gt_db1.db/tb01',
+ location = 'hdfs://%/user/hive/warehouse/gt_db1.db/tb01',
num_files = '0',
output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
@@ -73,7 +73,7 @@ COMMENT
COMMENT 'test table comments'
WITH (
input_format = 'org.apache.hadoop.mapred.TextInputFormat',
- location = 'hdfs://%:9000/user/hive/warehouse/gt_db1.db/tb01',
+ location = 'hdfs://%/user/hive/warehouse/gt_db1.db/tb01',
num_files = '0',
output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
@@ -91,7 +91,7 @@ COMMENT
COMMENT 'test table comments'
WITH (
input_format = 'org.apache.hadoop.mapred.TextInputFormat',
- location = 'hdfs://%:9000/user/hive/warehouse/gt_db1.db/tb01',
+ location = 'hdfs://%/user/hive/warehouse/gt_db1.db/tb01',
num_files = '0',
output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
@@ -110,7 +110,7 @@ ADD COLUMN
COMMENT 'test table comments'
WITH (
input_format = 'org.apache.hadoop.mapred.TextInputFormat',
- location = 'hdfs://%:9000/user/hive/warehouse/gt_db1.db/tb01',
+ location = 'hdfs://%/user/hive/warehouse/gt_db1.db/tb01',
num_files = '0',
output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
diff --git a/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00006_datatype.txt b/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00006_datatype.txt
index 33bedfdc75..44b18e3e0e 100644
--- a/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00006_datatype.txt
+++ b/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00006_datatype.txt
@@ -23,7 +23,7 @@ CREATE TABLE
COMMENT ''
WITH (
input_format = 'org.apache.hadoop.mapred.TextInputFormat',
- location = 'hdfs://%:9000/user/hive/warehouse/gt_db1.db/tb01',
+ location = 'hdfs://%/user/hive/warehouse/gt_db1.db/tb01',
output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
serde_name = 'tb01',
diff --git a/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00007_varchar.txt b/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00007_varchar.txt
index 77d6e77429..8dafd2eabc 100644
--- a/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00007_varchar.txt
+++ b/integration-test/src/test/resources/trino-ci-testset/testsets/hive/00007_varchar.txt
@@ -11,7 +11,7 @@ CREATE TABLE
COMMENT ''
WITH (
input_format = 'org.apache.hadoop.mapred.TextInputFormat',
- location = 'hdfs://%:9000/user/hive/warehouse/varchar_db1.db/tb01',
+ location = 'hdfs://%/user/hive/warehouse/varchar_db1.db/tb01',
output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
serde_name = 'tb01',
@@ -27,7 +27,7 @@ CREATE TABLE
COMMENT ''
WITH (
input_format = 'org.apache.hadoop.mapred.TextInputFormat',
- location = 'hdfs://%:9000/user/hive/warehouse/varchar_db1.db/tb02',
+ location = 'hdfs://%/user/hive/warehouse/varchar_db1.db/tb02',
output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
serde_name = 'tb02',
@@ -45,7 +45,7 @@ CREATE TABLE
COMMENT ''
WITH (
input_format = 'org.apache.hadoop.mapred.TextInputFormat',
- location = 'hdfs://%:9000/user/hive/warehouse/varchar_db1.db/tb04',
+ location = 'hdfs://%/user/hive/warehouse/varchar_db1.db/tb04',
output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
serde_name = 'tb04',
@@ -61,7 +61,7 @@ CREATE TABLE
COMMENT ''
WITH (
input_format = 'org.apache.hadoop.mapred.TextInputFormat',
- location = 'hdfs://%:9000/user/hive/warehouse/varchar_db1.db/tb05',
+ location = 'hdfs://%/user/hive/warehouse/varchar_db1.db/tb05',
output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
serde_name = 'tb05',
@@ -77,7 +77,7 @@ CREATE TABLE
COMMENT ''
WITH (
input_format = 'org.apache.hadoop.mapred.TextInputFormat',
- location = 'hdfs://%:9000/user/hive/warehouse/varchar_db1.db/tb06',
+ location = 'hdfs://%/user/hive/warehouse/varchar_db1.db/tb06',
output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
serde_name = 'tb06',
@@ -93,7 +93,7 @@ CREATE TABLE
COMMENT ''
WITH (
input_format = 'org.apache.hadoop.mapred.TextInputFormat',
- location = 'hdfs://%:9000/user/hive/warehouse/varchar_db1.db/tb07',
+ location = 'hdfs://%/user/hive/warehouse/varchar_db1.db/tb07',
output_format = 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat',
serde_lib = 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe',
serde_name = 'tb07',