Skip to content

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

Closed

Description

@qianheng-aws

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.

Activity

  1. added
    bug
    on Mar 14, 2025
  2. LantaoJin commented on Mar 14, 2025

    @LantaoJin
    Member
  3. penghuo commented on Mar 14, 2025

    @penghuo
    Collaborator

    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
    
  4. changed the title [-][BUG] calcite like function didn't work as expected[/-] [+][BUG] like function behaviour in V2 is not correct[/+] on Mar 20, 2025
  5. LantaoJin commented on Mar 20, 2025

    @LantaoJin
    Member

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

  6. added
    PPL
    on May 29, 2025
  7. self-assigned this
    on Jun 27, 2025
  8. moved this from Not Started to Done in PPL Trackeron Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

PPLbreakingbug

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions