You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/regression/expected/read_functions.out
+5-10Lines changed: 5 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -63,20 +63,15 @@ SELECT arraycol[1:2] FROM (
63
63
(1 row)
64
64
65
65
SELECT r['arraycol'][:] FROM read_parquet('../../data/indexable.parquet') r;
66
-
r.arraycol[:]
67
-
---------------
68
-
{11,22,33}
69
-
(1 row)
66
+
ERROR: (PGDuckDB/CreatePlan) Prepared query returned an error: 'Parser Error: syntax error at or near "*"
70
67
68
+
LINE 1: SELECT r.arraycol.* FROM system.main.read_parquet('../../data/indexable.parquet...
69
+
^
71
70
SELECT arraycol[:] FROM (
72
71
SELECT r['arraycol'] arraycol
73
72
FROM read_parquet('../../data/indexable.parquet') r
74
73
) q;
75
-
arraycol
76
-
------------
77
-
{11,22,33}
78
-
(1 row)
79
-
74
+
ERROR: (PGDuckDB/CreatePlan) Prepared query returned an error: 'Binder Error: Cannot extract field from expression "arraycol.*" because it is not a struct
80
75
-- Subqueries correctly expand *, in case of multiple columns.
81
76
SELECT * FROM (
82
77
SELECT 'something' as prefix, *, 'something else' as postfix
@@ -506,7 +501,7 @@ SELECT COUNT(r['a']) FROM read_json('../../data/table.json') r WHERE r['c'] > 50
506
501
51
507
502
(1 row)
508
503
509
-
SELECT r['a'], r['b'], r['c'] FROM read_json('../../data/table.json') r WHERE r['c'] > 50.4 AND r['c'] < 51.2;
504
+
SELECT (r).a, (r).b, (r).c FROM read_json('../../data/table.json') r WHERE (r).c > 50.4 AND (r).c < 51.2;
0 commit comments