Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions regression-test/suites/load_p2/tvf/test_s3_tvf.groovy
Original file line numberDiff line numberDiff line change
Expand Up@@ -64,7 +64,6 @@ suite("test_s3_tvf", "p2") {
.addProperty("uri", "s3://${s3BucketName}.${s3Endpoint}/regression/load/data/kd16=abcdefg/basic_data.csv")
.addProperty("format", "csv")
.addProperty("column_separator", "|")
.addProperty("use_path_style", "true")
.addProperty("force_parsing_by_standard_uri", "true")
.addProperty("path_partition_keys", "kd16"))
}
Expand All@@ -74,7 +73,6 @@ suite("test_s3_tvf", "p2") {
.addProperty("uri", "s3://${s3BucketName}.${s3Endpoint}/regression/load/data/kd16=abcdefg/basic_data.csv")
.addProperty("format", "csv")
.addProperty("column_separator", "|")
.addProperty("use_path_style", "true")
.addProperty("force_parsing_by_standard_uri", "true")
.addProperty("path_partition_keys", "kd16"))
// path partition key maybe don't support array type ?
Expand All@@ -92,7 +90,6 @@ suite("test_s3_tvf", "p2") {
.addProperty("uri", "s3://${s3BucketName}.${s3Endpoint}/regression/load/data/kd16=abcdefg/kd17=hello/basic_data.csv")
.addProperty("format", "csv")
.addProperty("column_separator", "|")
.addProperty("use_path_style", "true")
.addProperty("force_parsing_by_standard_uri", "true")
.addProperty("path_partition_keys", "kd16,kd17"))
}
Expand All@@ -102,7 +99,6 @@ suite("test_s3_tvf", "p2") {
.addProperty("uri", "s3://${s3BucketName}.${s3Endpoint}/regression/load/data/kd16=abcdefg/kd17=hello/basic_data.csv")
.addProperty("format", "csv")
.addProperty("column_separator", "|")
.addProperty("use_path_style", "true")
.addProperty("force_parsing_by_standard_uri", "true")
.addProperty("path_partition_keys", "kd16,kd17"))

Expand DownExpand Up@@ -284,7 +280,6 @@ suite("test_s3_tvf", "p2") {
.addProperty("read_json_by_line", "false")
.addProperty("strip_outer_array", "true")
.addProperty("column_separator", "|")
.addProperty("use_path_style", "true")
.addProperty("jsonpaths", '[\\"$.k00\\", \\"$.k01\\", \\"$.k12\\"]')
.addProperty("force_parsing_by_standard_uri", "true"))
}
Expand DownExpand Up@@ -317,7 +312,6 @@ suite("test_s3_tvf", "p2") {
.addProperty("read_json_by_line", "true")
.addProperty("strip_outer_array", "true")
.addProperty("column_separator", "|")
.addProperty("use_path_style", "true")
.addProperty("strip_outer_array", "false")
.addProperty("jsonpaths", '[\\"$.k00\\", \\"$.k01\\", \\"$.k12\\"]')
.addProperty("num_as_string", "true")
Expand DownExpand Up@@ -935,8 +929,10 @@ suite("test_s3_tvf", "p2") {
try {
sql """${sqlStr}"""
} catch (Exception ex) {
assertTrue(attribute.expectFiled)
logger.info("error: ", ex)
assertTrue(attribute.expectFiled,
"tvf insert threw unexpectedly: i=${i}, table=${attribute.tableName}, " +
"prop=${prop}, err=${ex.message}")
}
qt_select """ select count(*) from $attribute.tableName """
++i
Expand Down
Loading