This repository was archived by the owner on Oct 1, 2026. It is now read-only.
Repository navigation
SYN-1945 Support Snowflake TRIM. - #2
Merged
Merged
Conversation
zdenal
commented
Sep 22, 2023
| trim_what: Some(trim_what), | ||
| trim_characters: None, | ||
| }) | ||
| } else if self.consume_token(&Token::Comma) && dialect_of!(self is SnowflakeDialect) { |
Author
There was a problem hiding this comment.
no FROM and Snowflake and next is Comma (by doc Snowflake doesn't support FROM syntax) -> parse characters
zdenal
commented
Sep 22, 2023
| Box::new(PostgreSqlDialect {}), | ||
| Box::new(MsSqlDialect {}), | ||
| Box::new(AnsiDialect {}), | ||
| //Box::new(SnowflakeDialect {}), |
Author
There was a problem hiding this comment.
make sure it is still failing on others than snowflake.
zdenal
commented
Sep 22, 2023
| @@ -0,0 +1,36 @@ | |||
| name: Test Suite | |||
Author
There was a problem hiding this comment.
Added simple test workflow to see on PRs results of tests.
zdenal
commented
Sep 22, 2023
| } | ||
| if let Some(characters) = trim_characters { | ||
| write!(f, ", {}", display_comma_separated(characters))?; | ||
| } |
Author
There was a problem hiding this comment.
print trim characters after expression if there are
lustefaniak
approved these changes
Sep 22, 2023
zdenal
force-pushed
the
zdenko/snowflake-parse-trim-with-second-param-2
branch
from
September 22, 2023 11:25
c01f05c to
0398ed5
Compare
lustefaniak
deleted the
zdenko/snowflake-parse-trim-with-second-param-2
branch
October 27, 2023 16:59
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Why
We are getting errors with parsing snowflake
TRIMexpression including removing characters separated by comma.https://docs.snowflake.com/en/sql-reference/functions/trim
Example of real failing sql