-
Notifications
You must be signed in to change notification settings - Fork 564
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
Support relation visitor to visit the Option
field
#1556
Changes from all commits
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 | ||||
---|---|---|---|---|---|---|
|
@@ -7653,6 +7653,7 @@ impl fmt::Display for ShowStatementInParentType { | |||||
pub struct ShowStatementIn { | ||||||
pub clause: ShowStatementInClause, | ||||||
pub parent_type: Option<ShowStatementInParentType>, | ||||||
#[cfg_attr(feature = "visitor", visit(with = "visit_relation"))] | ||||||
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 took a look through the code, and it appears there are oehter fields that hold relation names that are not visited For example: datafusion-sqlparser-rs/src/ast/dml.rs Lines 580 to 581 in 4c629e8
Maybe we can file a ticket to annotate these ones too 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. Filed #1568 to track it. |
||||||
pub parent_name: Option<ObjectName>, | ||||||
} | ||||||
|
||||||
|
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.
it seems in theory this would match anything called
Option
(even if it wasn'tstd::Option
) but I think that seems ok to me (I don't think we'll have anything else realistically)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.
Agreed, I think we won't have another struct called
Option
in this project 🤔. Or we can match the full path withstd::option::Option
orcore::option::Option
if required.