forked from apache/datafusion-sqlparser-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Fix tests pass #7
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
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
524259b
Fixed trivial tests failures
micalazalea efe2a07
Fixed more tests
micalazalea f2f1056
Ignored backcompat breaks... for now
micalazalea f201a51
More simple tests fixes
micalazalea e0e929d
Fixed tests... but not sure whether this is right
micalazalea 195c8a1
Clippy
micalazalea d5c82c7
cargo fmt
micalazalea a88e83a
Fixed regression #1
micalazalea 763375c
Fixed second regression
micalazalea fd249d4
Ignore snowflake numeric failing test
micalazalea File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
hmm, I think there's an issue here that warehouses have different ways of escaping some characters? for instance I think some escape
"
as""
and others escape"
as\"
.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.
maybe this is still fine here though? are you pretty sure about this case?
eventually we should get in tests for all the cases that triggered the modifications added in this fork. I have a file with a bunch of them... I'd thought I had committed it but I guess not. https://gist.github.com/donhcd/31de459c6cfe763dce44f78a2246b172
anyways if you feel good about this let's try it out and we'll make sure we don't have any regressions before we move qwill to use an updated sha
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.
So line 68 used to have the
escape_single_quote_string
, which is why I'm reintroducing it here. This was why the test was failing (because the formatting for Value used to have this, which is what the below test is checking for and failing). I want to reintroduce this invocation, and also introduce the parallel for double-quoted strings, which is a feature that was introduced by us.In order to handle the various quote-escaping mechanisms, I think SingleQuotedString and DoubleQuotedString will need to have another field which denotes the quote char, so that formatting will know how to format it out. I think that should come after the regression is fixed.