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

Support DECLARE syntax for snowflake and bigquery #1122

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

iffyio
Copy link
Contributor

@iffyio iffyio commented Feb 2, 2024

The current support for DECLARE statements are primarily aimed at postgres-compatible syntax which differs significantly for snowflake and bigquery.
This adds support for both dialects.
Generic is left to still parse the postgres-compatible syntax since that should have the most coverage in terms of support.

The current support for `DECLARE` statements are primarily
aimed at postgres-compatible syntax which differs significantly
for snowflake and bigquery. This adds support for both
dialects. Generic still parses the postgres-compatible syntax
since that should have the most coverage in terms of support.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 7756478317

  • -24 of 339 (92.92%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.07%) to 87.732%

Changes Missing Coverage Covered Lines Changed/Added Lines %
tests/sqlparser_snowflake.rs 137 139 98.56%
src/ast/mod.rs 52 57 91.23%
tests/sqlparser_bigquery.rs 38 44 86.36%
src/parser/mod.rs 88 99 88.89%
Totals Coverage Status
Change from base Build 7660582105: 0.07%
Covered Lines: 19767
Relevant Lines: 22531

💛 - Coveralls

@alamb alamb changed the title Extend DECLARE support for snowflake and bigquery Support DECLARE syntax for snowflake and bigquery Feb 29, 2024
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thank you so much for this contribution @iffyio. I found this PR very well documented, coded and tested. 🏆

thanks again and sorry for the delay in review. I have very limited bandwidth for this project sadly

@alamb alamb merged commit 57113a9 into apache:main Feb 29, 2024
10 checks passed
@iffyio
Copy link
Contributor Author

iffyio commented Feb 29, 2024

@alamb Not a problem at all, yeah I understood your bandwidth for the project so no hurry on my end! Thanks a lot for the review! 🙏

@iffyio iffyio deleted the declare-extended branch February 29, 2024 15:13
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