-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add related source code locations to errors #13664
Changes from 1 commit
13ad9db
4603b35
86e1722
c3532c1
91f4e3c
85db8af
3f4ddd2
b4df859
e4652d7
d2e70ad
e44cb9f
31772ed
c15d8f5
09d7065
1d5c647
5fdc10e
f63a493
6f6722d
9a8ef78
fd46dce
360ac20
3dd66fc
13c4c9d
fe74dce
829430a
2772c6b
1b35207
243b788
e98694b
e847477
60a9f8b
f178db0
1308b85
51dd141
b5e326c
1cd0f3e
20e9f61
e1e6ac5
7265bd2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -295,7 +295,7 @@ query error DataFusion error: Error during planning: unnest\(\) requires exactly | |
select unnest(); | ||
|
||
## Unnest empty expression in from clause | ||
query error DataFusion error: SQL error: ParserError\("Expected: an expression, found: \)"\) | ||
query error DataFusion error: SQL error: ParserError\("Expected: an expression, found: \) at Line: 1, Column: 22"\) | ||
select * from unnest(); | ||
|
||
|
||
|
@@ -863,11 +863,11 @@ select count(*) from (select unnest(range(0, 100000)) id) t inner join (select u | |
# Test implicit LATERAL support for UNNEST | ||
# Issue: https://github.com/apache/datafusion/issues/13659 | ||
# TODO: https://github.com/apache/datafusion/issues/10048 | ||
query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression OuterReferenceColumn\(List\(Field \{ name: "item", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: \{\} \}\), Column \{ relation: Some\(Bare \{ table: "u" \}\), name: "column1" \}\) | ||
query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression OuterReferenceColumn\(List\(Field \{ name: "item", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: \{\} \}\), Column \{ relation: Some\(Bare \{ table: "u" \}\), name: "column1", spans: Spans\(\[\]\) \}\) | ||
select * from unnest_table u, unnest(u.column1); | ||
|
||
# Test implicit LATERAL support for UNNEST (INNER JOIN) | ||
query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression OuterReferenceColumn\(List\(Field \{ name: "item", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: \{\} \}\), Column \{ relation: Some\(Bare \{ table: "u" \}\), name: "column1" \}\) | ||
query error DataFusion error: This feature is not implemented: Physical plan does not support logical expression OuterReferenceColumn\(List\(Field \{ name: "item", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: \{\} \}\), Column \{ relation: Some\(Bare \{ table: "u" \}\), name: "column1", spans: Spans\(\[\]\) \}\) | ||
select * from unnest_table u INNER JOIN unnest(u.column1) AS t(column1) ON u.column3 = t.column1; | ||
|
||
# Test implicit LATERAL planning for UNNEST | ||
|
@@ -883,7 +883,7 @@ logical_plan | |
06)------Unnest: lists[__unnest_placeholder(outer_ref(u.column1))|depth=1] structs[] | ||
07)--------Projection: outer_ref(u.column1) AS __unnest_placeholder(outer_ref(u.column1)) | ||
08)----------EmptyRelation | ||
physical_plan_error This feature is not implemented: Physical plan does not support logical expression OuterReferenceColumn(List(Field { name: "item", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }), Column { relation: Some(Bare { table: "u" }), name: "column1" }) | ||
physical_plan_error This feature is not implemented: Physical plan does not support logical expression OuterReferenceColumn(List(Field { name: "item", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }), Column { relation: Some(Bare { table: "u" }), name: "column1", spans: Spans([]) }) | ||
|
||
# Test implicit LATERAL planning for UNNEST (INNER JOIN) | ||
query TT | ||
|
@@ -899,7 +899,7 @@ logical_plan | |
07)--------Unnest: lists[__unnest_placeholder(outer_ref(u.column1))|depth=1] structs[] | ||
08)----------Projection: outer_ref(u.column1) AS __unnest_placeholder(outer_ref(u.column1)) | ||
09)------------EmptyRelation | ||
physical_plan_error This feature is not implemented: Physical plan does not support logical expression OuterReferenceColumn(List(Field { name: "item", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }), Column { relation: Some(Bare { table: "u" }), name: "column1" }) | ||
physical_plan_error This feature is not implemented: Physical plan does not support logical expression OuterReferenceColumn(List(Field { name: "item", data_type: Int64, nullable: true, dict_id: 0, dict_is_ordered: false, metadata: {} }), Column { relation: Some(Bare { table: "u" }), name: "column1", spans: Spans([]) }) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm wondering if Spans brings a purpose here? Should we exclude it from error message, otherwise it might be confusing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm yeah in general I think I agree that we don't need |
||
|
||
|
||
## Unnest in subquery | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats really cool, does that work for multiline statements?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking should be that parser responsibility rather than the runtime engine's 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes it does work for multiline statements, and it's the parser that outputs that error.