Skip to content

fix: Like::TestString to align with Java LIKE semantics#320

Open
lxy-9602 wants to merge 2 commits into
alibaba:mainfrom
lxy-9602:fix-like
Open

fix: Like::TestString to align with Java LIKE semantics#320
lxy-9602 wants to merge 2 commits into
alibaba:mainfrom
lxy-9602:fix-like

Conversation

@lxy-9602
Copy link
Copy Markdown
Collaborator

Purpose

No Linked issue.

Description:

  • Validate LIKE escape sequences like Java Paimon
  • Treat trailing \ and invalid escapes as errors
  • Make _ match one UTF-8 character instead of one byte
  • Keep % matching any sequence
  • Remove alloca and use std::vector<bool> instead

Tests

  • Add invalid escape sequence tests
  • Add escaped \ and % tests
  • Add UTF-8 multi-byte _ matching tests
  • Add line terminator semantics tests

API and Format

Documentation

Generative AI tooling

Aone Copilot (Claude)

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.

1 participant