Skip to content

fix(duckdb-driver): like filters escaping#11092

Open
hannosgit wants to merge 2 commits into
cube-js:masterfrom
hannosgit:fix-like-filters
Open

fix(duckdb-driver): like filters escaping#11092
hannosgit wants to merge 2 commits into
cube-js:masterfrom
hannosgit:fix-like-filters

Conversation

@hannosgit

Copy link
Copy Markdown
Contributor

Check List

  • Tests have been run in packages where changes have been made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Issue Reference this PR resolves

#7492

Description of Changes Made (if issue reference is not provided)

Always include explicit ESCAPE '\' clause when doing a ILIKE.

From https://duckdb.org/docs/current/sql/functions/pattern_matching#like

To search within a string for a character that is a wildcard (% or _), the pattern must use an ESCAPE clause and an escape character to indicate the wildcard should be treated as a literal character instead of a wildcard.

@hannosgit hannosgit requested a review from a team as a code owner June 16, 2026 07:12
@github-actions github-actions Bot added javascript Pull requests that update Javascript code data source driver driver:duckdb labels Jun 16, 2026
@hannosgit hannosgit changed the title Fix like filters Fix like filters for DuckDB Jun 16, 2026
@github-actions github-actions Bot added the pr:community Contribution from Cube.js community members. label Jun 16, 2026
@hannosgit hannosgit changed the title Fix like filters for DuckDB Fix(duckdb-driver): like filters escaping Jun 16, 2026
@hannosgit hannosgit changed the title Fix(duckdb-driver): like filters escaping fix(duckdb-driver): like filters escaping Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data source driver driver:duckdb javascript Pull requests that update Javascript code pr:community Contribution from Cube.js community members.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant