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

Update Pinot query validator to support "like" in queries #6188

Merged
merged 5 commits into from
Jul 30, 2024

Conversation

sankari165
Copy link
Member

@sankari165 sankari165 commented Jul 25, 2024

What changed?
Update pinot query validator to allow "like" in queries to support partial match for system fields like WorkflowID, RunID or WorkflowType

The PR also verifies that ES will not error out for a query with "like". It converts it to match_phrase since wild card is not supported in elasticsql as of now [https://github.com/cch123/elasticsql/blob/master/readme.md]

Why?
pinot supports partial match with text_match() and this can be leveraged in ListWorkflowExecutions. Based on earlier tests, text_match() performs better than regexp_like(). This does need text index in pinot

How did you test it?
unit tests

Potential risks

Release notes

Documentation Changes

@sankari165 sankari165 changed the title Update Pinot query validator to support like in queries for partial match in system fields Update Pinot query validator to support "like" in queries Jul 26, 2024
Copy link

codecov bot commented Jul 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.89%. Comparing base (f9996a1) to head (3c850b4).
Report is 4 commits behind head on master.

Additional details and impacted files
Files Coverage Δ
common/pinot/pinotQueryValidator.go 87.15% <100.00%> (+0.27%) ⬆️

... and 18 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9996a1...3c850b4. Read the comment docs.

@sankari165 sankari165 marked this pull request as ready for review July 30, 2024 07:00
Copy link
Member

@bowenxia bowenxia left a comment

Choose a reason for hiding this comment

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

LGTM

@sankari165 sankari165 merged commit edf4861 into cadence-workflow:master Jul 30, 2024
20 checks passed
@sankari165 sankari165 deleted the CDNC-10017 branch July 30, 2024 17:53
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