Skip to content
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

[BUG] like function behaviour in V2 is not correct #3428

Open
qianheng-aws opened this issue Mar 14, 2025 · 3 comments
Open

[BUG] like function behaviour in V2 is not correct #3428

qianheng-aws opened this issue Mar 14, 2025 · 3 comments
Labels
breaking bug Something isn't working

Comments

@qianheng-aws
Copy link
Contributor

qianheng-aws commented Mar 14, 2025

What is the bug?
CalciteWhereCommandIT::testIsNotNullFunction running failed.

When expression like(firstname, 'Ambe_') evaluates on value Amber JOHnny, the v2 engine will return true while Calcite return false.

@qianheng-aws qianheng-aws added bug Something isn't working untriaged labels Mar 14, 2025
@LantaoJin
Copy link
Member

@xinyual

@penghuo
Copy link
Collaborator

penghuo commented Mar 14, 2025

the v2 engine will return true while Calcite return false.

It is a bug in v2 engine. test in spark-sql

spark-sql (default)> select "Amber JOHnny" LIKE "Ambe_";
Amber JOHnny LIKE Ambe_
false


spark-sql (default)> select "Amber JOHnny" LIKE "Ambe_%";
Amber JOHnny LIKE Ambe_%
true

@penghuo penghuo removed the untriaged label Mar 14, 2025
@LantaoJin LantaoJin changed the title [BUG] calcite like function didn't work as expected [BUG] like function behaviour in V2 is not correct Mar 20, 2025
@LantaoJin
Copy link
Member

Similar case as WHERE Like(TextBody, 'test*') should return false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants