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

OCL operation SQLLike returns different results inPs and in memory. #27

Open
bero opened this issue Dec 7, 2024 · 0 comments
Open

OCL operation SQLLike returns different results inPs and in memory. #27

bero opened this issue Dec 7, 2024 · 0 comments
Assignees

Comments

@bero
Copy link
Member

bero commented Dec 7, 2024

SQLLike has different implementations for inPs and in memory evaluation.
inPs simply delegates the evaluation to Database.
InMemory tries to use RegEx to achieve same result, however operator % is not handled correctly, making it impossible to specify the position of search string.

Implement SQLLikeToRegEx to correctly handle the use of %operator.
Both TBOS_SQLLike and TBOS_SQLLikeCaseInSensitive are affected.

Test by comparing results of expression using SQLLike containing % with ObjectInspector InPs checked and unchecked (before and after this change)

@bero bero self-assigned this Dec 7, 2024
bero added a commit that referenced this issue Dec 7, 2024
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

No branches or pull requests

1 participant