Skip to content
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

fixed visitor and select fields #615

Merged
merged 6 commits into from
Mar 26, 2024
Merged

fixed visitor and select fields #615

merged 6 commits into from
Mar 26, 2024

Conversation

brennanjl
Copy link
Collaborator

This makes two changes to the SQL AST:

  1. It renames SelectCores field to SimpleSelects, to match the changes made in Parse: tree update for visitor #602
  2. It removes visiting for interfaces, since we should only visit concrete types

@brennanjl brennanjl marked this pull request as draft March 26, 2024 14:26
@brennanjl
Copy link
Collaborator Author

Converted back to draft to address a few other necessary changes

@@ -301,7 +301,7 @@ func (s *StatementCleaner) EnterSelectCore(node *tree.SimpleSelect) (err error)

// EnterSelectStmt checks that, for each SelectCore besides the last, a compound operator is provided
func (s *StatementCleaner) EnterSelectStmtNoCte(node *tree.SelectCore) (err error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EnterSelectStmtNoCte? seems listener not changed

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

@brennanjl brennanjl marked this pull request as ready for review March 26, 2024 19:46
Copy link
Contributor

@Yaiba Yaiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -26,64 +26,214 @@ func (e *expressionBase) Walk(w AstListener) error {

type Wrapped bool

type ExpressionLiteral struct {
// type ExpressionLiteral struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete this?

@brennanjl brennanjl merged commit 93353da into main Mar 26, 2024
1 check passed
@brennanjl brennanjl deleted the fix-visitor branch March 26, 2024 21:13
@jchappelow jchappelow added this to the v0.8.0 milestone May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants