should be it
This commit is contained in:
36
external/duckdb/test/sql/json/issues/issue13725.test
vendored
Normal file
36
external/duckdb/test/sql/json/issues/issue13725.test
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
# name: test/sql/json/issues/issue13725.test
|
||||
# description: Test issue 13725 - Using both hive_partitioning and hive_types in read_json_objects intermittently segfaults
|
||||
# group: [issues]
|
||||
|
||||
require json
|
||||
|
||||
# path slashes
|
||||
require notwindows
|
||||
|
||||
query III
|
||||
select *
|
||||
from read_json_objects('data/json/13725/month=*/*.json', hive_partitioning = true, format = auto, hive_types = {'month': int}, filename = true)
|
||||
where month = 7;
|
||||
----
|
||||
{"hello": "there"} data/json/13725/month=07/mytest.json 7
|
||||
|
||||
query I
|
||||
select count(*)
|
||||
from read_json_objects('data/json/13725/month=*/*.json', hive_partitioning = true, format = auto, hive_types = {'month': int}, filename = true)
|
||||
where month = 7;
|
||||
----
|
||||
1
|
||||
|
||||
query III
|
||||
select *
|
||||
from read_json('data/json/13725/month=*/*.json', hive_partitioning = true, format = auto, hive_types = {'month': int}, filename = true)
|
||||
where month = 7;
|
||||
----
|
||||
there data/json/13725/month=07/mytest.json 7
|
||||
|
||||
query I
|
||||
select count(*)
|
||||
from read_json('data/json/13725/month=*/*.json', hive_partitioning = true, format = auto, hive_types = {'month': int}, filename = true)
|
||||
where month = 7;
|
||||
----
|
||||
1
|
||||
Reference in New Issue
Block a user