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

Tokenize output for equivalence check #328

Closed
tconbeer opened this issue Nov 29, 2022 · 0 comments · Fixed by #349
Closed

Tokenize output for equivalence check #328

tconbeer opened this issue Nov 29, 2022 · 0 comments · Fixed by #349
Labels
enhancement New feature or request
Milestone

Comments

@tconbeer
Copy link
Owner

Black parses input and output code unless you use --fast as an extra safety check. I've been wanting to do this, but thought I was blocked by the lack of a good sql parser.

A much simpler option is to just lex the output, and make sure that the tokens are the same as those from the input (except for newlines and other gotchas tbd).

@tconbeer tconbeer added the enhancement New feature or request label Nov 29, 2022
@tconbeer tconbeer added this to the v0.15.0 milestone Nov 30, 2022
tconbeer added a commit that referenced this issue Jan 6, 2023
tconbeer added a commit that referenced this issue Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant