27 lines
747 B
SQL
27 lines
747 B
SQL
# name: test/sql/json/issues/issue10751and11152.test
|
|
# description: Test issue 10751 and 11152 - Duplicate keys in JSON object ignore_errors
|
|
# group: [issues]
|
|
|
|
require json
|
|
|
|
# issue 10751
|
|
statement error
|
|
create or replace table json_test as select * from read_json_auto('data/json/10751.json', format = 'newline_delimited');
|
|
----
|
|
Not implemented Error: Duplicate name
|
|
|
|
statement ok
|
|
create table json_test as select * from read_json_auto('data/json/10751.json', format = 'newline_delimited', ignore_errors=true);
|
|
|
|
statement ok
|
|
select * from json_test;
|
|
|
|
# issue 11152
|
|
statement error
|
|
FROM read_json_auto('data/json/11152.json');
|
|
----
|
|
Invalid Input Error: Malformed JSON
|
|
|
|
statement ok
|
|
FROM read_json_auto('data/json/11152.json', ignore_errors=true);
|