Skip to content

Commit

Permalink
[fix](json)Fix the bug that does not stop when reading json files
Browse files Browse the repository at this point in the history
  • Loading branch information
hubgeter committed Aug 18, 2023
1 parent 5bd43e1 commit 060380c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions regression-test/data/external_table_p0/tvf/test_hdfs_tvf.out
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@
8 chengdu 2345678
9 xian 2345679

-- !json_limit --
-- !json_limit1 --
1 beijing 2345671
10 hefei 23456710
11 \N 23456711
Expand All @@ -271,7 +271,7 @@
8 chengdu 2345678
9 xian 2345679

-- !json_limit --
-- !json_limit2 --
1 beijing 1454547
10 hefei 2345676
2 shanghai 1244264
Expand All @@ -283,14 +283,14 @@
8 chengdu 2345674
9 xian 2345675

-- !json_limit --
-- !json_limit3 --
1 {"id": 1, "city": "beijing", "code": 2345671}
2 {"id": 2, "city": "shanghai", "code": 2345672}
3 {"id": 3, "city": "hangzhou", "code": 2345673}
4 {"id": 4, "city": "shenzhen", "code": 2345674}
5 {"id": 5, "city": "guangzhou", "code": 2345675}

-- !json_limit --
-- !json_limit4 --
1 {"id": 1, "city": "beijing", "code": 2345671}
2 {"id": 2, "city": "shanghai", "code": 2345672}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ suite("test_hdfs_tvf","external,hive,tvf,external_docker") {

uri = "${defaultFS}" + "/user/doris/preinstalled_data/json_format_test/simple_object_json.json"
format = "json"
qt_json_limit """ select * from HDFS(
qt_json_limit1 """ select * from HDFS(
"uri" = "${uri}",
"fs.defaultFS"= "${defaultFS}",
"hadoop.username" = "${hdfsUserName}",
Expand All @@ -145,7 +145,7 @@ suite("test_hdfs_tvf","external,hive,tvf,external_docker") {

uri = "${defaultFS}" + "/user/doris/preinstalled_data/json_format_test/one_array_json.json"
format = "json"
qt_json_limit """ select * from HDFS(
qt_json_limit2 """ select * from HDFS(
"uri" = "${uri}",
"fs.defaultFS"= "${defaultFS}",
"hadoop.username" = "${hdfsUserName}",
Expand All @@ -154,7 +154,7 @@ suite("test_hdfs_tvf","external,hive,tvf,external_docker") {
"read_json_by_line" = "false") order by id limit 100; """
uri = "${defaultFS}" + "/user/doris/preinstalled_data/json_format_test/nest_json.json"
format = "json"
qt_json_limit """ select * from HDFS(
qt_json_limit3 """ select * from HDFS(
"uri" = "${uri}",
"fs.defaultFS"= "${defaultFS}",
"hadoop.username" = "${hdfsUserName}",
Expand All @@ -163,7 +163,7 @@ suite("test_hdfs_tvf","external,hive,tvf,external_docker") {
"read_json_by_line" = "true") order by no limit 100; """
uri = "${defaultFS}" + "/user/doris/preinstalled_data/json_format_test/nest_json.json"
format = "json"
qt_json_limit """ select * from HDFS(
qt_json_limit4 """ select * from HDFS(
"uri" = "${uri}",
"fs.defaultFS"= "${defaultFS}",
"hadoop.username" = "${hdfsUserName}",
Expand Down

0 comments on commit 060380c

Please sign in to comment.