Skip to content

Add an AST visitor - #114

Closed
benesch wants to merge 1 commit into
apache:mainfrom
benesch:visitor
Closed

Add an AST visitor#114
benesch wants to merge 1 commit into
apache:mainfrom
benesch:visitor

Conversation

@benesch

Copy link
Copy Markdown
Contributor

Resubmission of #78, which caused some compilation failures due to merge skew when it landed. @andygrove are you game to try this again?

@benesch
benesch requested a review from andygroveJune 11, 2019 13:24
@beneschbenesch mentioned this pull request Jun 11, 2019
@coveralls

coveralls commented Jun 11, 2019

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 387

  • 675 of 728(92.72%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.08%) to 92.322%

Changes Missing CoverageCovered LinesChanged/Added Lines%
src/ast/visit.rs67572892.72%
TotalsCoverage Status
Change from base Build 386:0.08%
Covered Lines:5002
Relevant Lines:5418

💛 - Coveralls

@benesch
beneschforce-pushed the visitor branch 3 times, most recently from 73c0513 to c71e6e2CompareJune 25, 2019 18:16
@malobre

Copy link
Copy Markdown

An AST visitor would be a nice thing to have.
@andygrove Could you consider merging this PR ?

@wseaton

Copy link
Copy Markdown

Bumping this, adding an AST visitor would make it much easier to use sqlparser-rs to extract particular metadata from queries like "what tables are referenced in this query".

@benesch I see you did some work on MaterializeInc/materialize#3288 in auto-generating the visitor, is this something that could potentially be upstreamed, maybe have walkabout run on pre-commit hook to force the vistior to be regenerated?

@benesch

benesch commented Apr 9, 2021 via email

Copy link
Copy Markdown
ContributorAuthor

@alamb

Copy link
Copy Markdown
Contributor

Hi @benesch -- sorry for the delay in review. I am going to help out now with this repo and we are working to clear the backlog. Is this PR still something you would like to work on to help contribute?

@alamb

Copy link
Copy Markdown
Contributor

Closing due to staleness -- feel free to reopen this PR or create a new one if you plan to keep working on this

@alambalamb closed this Sep 27, 2021
@lovasoalovasoa mentioned this pull request Sep 4, 2022
Sign up for freeto 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.

5 participants

@benesch@coveralls@malobre@wseaton@alamb