Skip to content

Add support for the MATCH and REGEXP binary operators #1840

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

Merged
merged 3 commits into from
May 8, 2025

Conversation

lovasoa
Copy link
Contributor

@lovasoa lovasoa commented May 6, 2025

In SQLite, MATCH and REGEXP are binary operators.
SQLite treats them like function calls, but this implementation preserves the original binary expressions.

real-world examples:

SELECT * FROM email WHERE email MATCH 'fts5';
select count(*) from messages where msg_text regexp '\d+';

documentation:

Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @lovasoa!
cc @alamb

@iffyio iffyio merged commit 2182f7e into apache:main May 8, 2025
9 checks passed
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.

2 participants