Skip to content

Conversation

ryanschneider
Copy link
Contributor

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.

@ryanschneider ryanschneider requested a review from iffyio July 1, 2025 21:43
Copy link
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! Thanks @ryanschneider!
cc @alamb

@iffyio iffyio changed the title fix: DuckDB accepts 2nd characters argument to TRIM DuckDB: Add support for multiple TRIM arguments Jul 2, 2025
@iffyio iffyio merged commit a339822 into apache:main Jul 2, 2025
10 checks passed
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.

2 participants