You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "ryanschneider (via GitHub)" <gi...@apache.org> on 2025/06/30 19:44:58 UTC

[PR] fix: DuckDB accepts 2nd characters argument to TRIM [datafusion-sqlparser-rs]

ryanschneider opened a new pull request, #1916:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1916

   Like BigQuery and Snowflake, DuckDB also supports the 2nd `characters` argument to `TRIM`: https://duckdb.org/docs/stable/sql/functions/text.html#trimstring-characters
   
   - DuckDB was added to the list of dialects potentially expecting a comma
   - `test_duckdb_trim` is basically a copy of `test_bigquery_trim` using the proper dialect
   - `parse_trim` test was updated to exclude DuckDB alongside BigQuery and Snowflake.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: DuckDB accepts 2nd characters argument to TRIM [datafusion-sqlparser-rs]

Posted by "ryanschneider (via GitHub)" <gi...@apache.org>.
ryanschneider commented on code in PR #1916:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1916#discussion_r2178158630


##########
tests/sqlparser_common.rs:
##########
@@ -7762,7 +7762,7 @@ fn parse_trim() {
         Box::new(MySqlDialect {}),
         //Box::new(BigQueryDialect {}),
         Box::new(SQLiteDialect {}),
-        Box::new(DuckDbDialect {}),
+        //Box::new(DuckDbDialect {}),

Review Comment:
   I commented it out to match the existing code style where BigQuery and Snowflake were commented out as well.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] fix: DuckDB accepts 2nd characters argument to TRIM [datafusion-sqlparser-rs]

Posted by "iffyio (via GitHub)" <gi...@apache.org>.
iffyio commented on code in PR #1916:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1916#discussion_r2177398711


##########
tests/sqlparser_common.rs:
##########
@@ -7762,7 +7762,7 @@ fn parse_trim() {
         Box::new(MySqlDialect {}),
         //Box::new(BigQueryDialect {}),
         Box::new(SQLiteDialect {}),
-        Box::new(DuckDbDialect {}),
+        //Box::new(DuckDbDialect {}),

Review Comment:
   ```suggestion
   ```
   I think it should be fine to remove the dialect from the list



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [PR] DuckDB: Add support for multiple `TRIM` arguments [datafusion-sqlparser-rs]

Posted by "iffyio (via GitHub)" <gi...@apache.org>.
iffyio merged PR #1916:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1916


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org