Skip to content

Incorrect LIKE result when pattern contains \\ double backslash #13304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
findepi opened this issue Nov 8, 2024 · 2 comments · Fixed by #14501
Closed

Incorrect LIKE result when pattern contains \\ double backslash #13304

findepi opened this issue Nov 8, 2024 · 2 comments · Fixed by #14501
Assignees
Labels
bug Something isn't working

Comments

@findepi
Copy link
Member

findepi commented Nov 8, 2024

Incorrect LIKE result when pattern contains \\ two backslashes

\ in LIKE pattern is an escape character (but see #13291)

query B
SELECT '%' LIKE '\%'
----
true

query B
SELECT 'a' LIKE '\%'
----
false

so this should return true

# should be true
query B
SELECT '\a' LIKE '\\%'
----
false

notes

@findepi
Copy link
Member Author

findepi commented Nov 8, 2024

Should be fixed by apache/arrow-rs#6703

@findepi
Copy link
Member Author

findepi commented Feb 5, 2025

This is now fixed, but let's add '\a' LIKE '\\%' to the regression tests: #14501

@findepi findepi self-assigned this Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant