Skip to content

fix: have wildcard replace work in duckdb and snowflake syntax#1226

Merged
alamb merged 1 commit intoapache:mainfrom
HiranmayaGundu:hiran/fix-replace-wildcard-3
Apr 21, 2024
Merged

fix: have wildcard replace work in duckdb and snowflake syntax#1226
alamb merged 1 commit intoapache:mainfrom
HiranmayaGundu:hiran/fix-replace-wildcard-3

Conversation

@HiranmayaGundu
Copy link
Copy Markdown
Contributor

Snowflake and DuckDB also support SELECT * REPLACE() from table, so enabling the functionality for both dialects.
I added test cases so that the examples given in the respective documentation passed:
duck db: https://duckdb.org/docs/sql/query_syntax/select.html
snowflake: https://docs.snowflake.com/en/sql-reference/sql/select

Comment thread tests/sqlparser_duckdb.rs Outdated
@HiranmayaGundu HiranmayaGundu force-pushed the hiran/fix-replace-wildcard-3 branch from f90a446 to 25cfd1f Compare April 20, 2024 23:18
Copy link
Copy Markdown
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

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

LGTM!
@alamb

Copy link
Copy Markdown
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 @HiranmayaGundu and @iffyio -- looks great!

@alamb alamb merged commit 9db20e2 into apache:main Apr 21, 2024
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 8768402595

Details

  • 42 of 42 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 88.117%

Totals Coverage Status
Change from base Build 8660968190: 0.03%
Covered Lines: 21297
Relevant Lines: 24169

💛 - Coveralls

@HiranmayaGundu HiranmayaGundu deleted the hiran/fix-replace-wildcard-3 branch April 21, 2024 17:28
JichaoS pushed a commit to luabase/sqlparser-rs that referenced this pull request May 7, 2024
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.

4 participants