37 lines
1.1 KiB
SQL
37 lines
1.1 KiB
SQL
# 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
|