add support for custom operators in postgres#1302
Merged
alamb merged 8 commits intoapache:mainfrom Jun 7, 2024
Merged
Conversation
Fixes apache#1298 Fixes sqlpage/SQLPage#372 Closes apache#1299
Pull Request Test Coverage Report for Build 9407605747Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9407833047Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9407854163Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9407871536Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9407962709Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9408152778Details
💛 - Coveralls |
Contributor
Author
|
@alamb , could you have a look ? The PR is quite simple, it extends the tokenizer to be able to parse postgresql custom operators. Existing non-postgres dialects are not affected, but new dialects have the ability to add support for their own custom operators. I (and @amrutadotorg) need that for SQLPage. |
This was referenced Jun 6, 2024
Co-authored-by: Joey Hain <joey@sigmacomputing.com>
Pull Request Test Coverage Report for Build 9411642947Details
💛 - Coveralls |
Pull Request Test Coverage Report for Build 9411672059Details
💛 - Coveralls |
alamb
approved these changes
Jun 7, 2024
| // + - * / < > = ~ ! @ # % ^ & | ` ? | ||
|
|
||
| // Here, we test the ones used by common extensions | ||
| let operators = [ |
Contributor
Author
|
Thank you for merging ! This will open a world of new possibilities in SQLPage, using new postgres extensions. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #1298
Fixes sqlpage/SQLPage#372
Closes #1299