should be it
This commit is contained in:
26
external/duckdb/test/sql/json/issues/issue10751and11152.test
vendored
Normal file
26
external/duckdb/test/sql/json/issues/issue10751and11152.test
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
# 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);
|
||||
Reference in New Issue
Block a user