diff options
| author | Amit Langote | 2024-09-06 03:51:26 +0000 |
|---|---|---|
| committer | Amit Langote | 2024-09-06 03:52:39 +0000 |
| commit | eef5195f300bb9cf2864d48761c0db2ad93842c1 (patch) | |
| tree | 6f17baf38858a677aa512ccd18381a3e3ce817e9 /src/test | |
| parent | e4e27976a687dd641c1c8251fad3a90a08756df8 (diff) | |
Revert recent SQL/JSON related commits
Reverts c88ce386c4d, 5067c230b8e, and e4e27976a68, because a few BF
animals didn't like one or all of them.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/regress/expected/sqljson_jsontable.out | 43 | ||||
| -rw-r--r-- | src/test/regress/sql/sqljson_jsontable.sql | 10 |
2 files changed, 0 insertions, 53 deletions
diff --git a/src/test/regress/expected/sqljson_jsontable.out b/src/test/regress/expected/sqljson_jsontable.out index 5c7aaa6159d..721e01d6ad0 100644 --- a/src/test/regress/expected/sqljson_jsontable.out +++ b/src/test/regress/expected/sqljson_jsontable.out @@ -1132,46 +1132,3 @@ ERROR: invalid ON ERROR behavior for column "a" LINE 1: ...M JSON_TABLE(jsonb '1', '$' COLUMNS (a int exists empty obje... ^ DETAIL: Only ERROR, TRUE, FALSE, or UNKNOWN is allowed in ON ERROR for EXISTS columns. --- Test JSON_TABLE() column deparsing -- don't emit default ON ERROR / EMPTY --- behavior -EXPLAIN VERBOSE SELECT * from JSON_TABLE('"a"', '$' COLUMNS (a text PATH '$')); - QUERY PLAN ------------------------------------------------------------------------------------------------------ - Table Function Scan on "json_table" (cost=0.01..1.00 rows=100 width=32) - Output: a - Table Function Call: JSON_TABLE('"a"'::jsonb, '$' AS json_table_path_0 COLUMNS (a text PATH '$')) -(3 rows) - -EXPLAIN VERBOSE SELECT * from JSON_TABLE('"a"', '$' COLUMNS (a text PATH '$') ERROR ON ERROR); - QUERY PLAN --------------------------------------------------------------------------------------------------------------------- - Table Function Scan on "json_table" (cost=0.01..1.00 rows=100 width=32) - Output: a - Table Function Call: JSON_TABLE('"a"'::jsonb, '$' AS json_table_path_0 COLUMNS (a text PATH '$') ERROR ON ERROR) -(3 rows) - --- Test JSON_TABLE() deparsing -- don't emit default ON ERROR behavior -EXPLAIN VERBOSE SELECT * from JSON_TABLE('"a"', '$' COLUMNS (a text PATH '$')); - QUERY PLAN ------------------------------------------------------------------------------------------------------ - Table Function Scan on "json_table" (cost=0.01..1.00 rows=100 width=32) - Output: a - Table Function Call: JSON_TABLE('"a"'::jsonb, '$' AS json_table_path_0 COLUMNS (a text PATH '$')) -(3 rows) - -EXPLAIN VERBOSE SELECT * from JSON_TABLE('"a"', '$' COLUMNS (a text PATH '$') EMPTY ON ERROR); - QUERY PLAN ------------------------------------------------------------------------------------------------------ - Table Function Scan on "json_table" (cost=0.01..1.00 rows=100 width=32) - Output: a - Table Function Call: JSON_TABLE('"a"'::jsonb, '$' AS json_table_path_0 COLUMNS (a text PATH '$')) -(3 rows) - -EXPLAIN VERBOSE SELECT * from JSON_TABLE('"a"', '$' COLUMNS (a text PATH '$') EMPTY ARRAY ON ERROR); - QUERY PLAN ------------------------------------------------------------------------------------------------------ - Table Function Scan on "json_table" (cost=0.01..1.00 rows=100 width=32) - Output: a - Table Function Call: JSON_TABLE('"a"'::jsonb, '$' AS json_table_path_0 COLUMNS (a text PATH '$')) -(3 rows) - diff --git a/src/test/regress/sql/sqljson_jsontable.sql b/src/test/regress/sql/sqljson_jsontable.sql index 31bc9c9ea0c..38992316f5a 100644 --- a/src/test/regress/sql/sqljson_jsontable.sql +++ b/src/test/regress/sql/sqljson_jsontable.sql @@ -542,13 +542,3 @@ SELECT * FROM JSON_TABLE(jsonb '1', '$' COLUMNS (a int) NULL ON ERROR); SELECT * FROM JSON_TABLE(jsonb '1', '$' COLUMNS (a int true on empty)); SELECT * FROM JSON_TABLE(jsonb '1', '$' COLUMNS (a int omit quotes true on error)); SELECT * FROM JSON_TABLE(jsonb '1', '$' COLUMNS (a int exists empty object on error)); - --- Test JSON_TABLE() column deparsing -- don't emit default ON ERROR / EMPTY --- behavior -EXPLAIN VERBOSE SELECT * from JSON_TABLE('"a"', '$' COLUMNS (a text PATH '$')); -EXPLAIN VERBOSE SELECT * from JSON_TABLE('"a"', '$' COLUMNS (a text PATH '$') ERROR ON ERROR); - --- Test JSON_TABLE() deparsing -- don't emit default ON ERROR behavior -EXPLAIN VERBOSE SELECT * from JSON_TABLE('"a"', '$' COLUMNS (a text PATH '$')); -EXPLAIN VERBOSE SELECT * from JSON_TABLE('"a"', '$' COLUMNS (a text PATH '$') EMPTY ON ERROR); -EXPLAIN VERBOSE SELECT * from JSON_TABLE('"a"', '$' COLUMNS (a text PATH '$') EMPTY ARRAY ON ERROR); |
