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

[Pinot] fix bug when querying a string field in attr with an empty value #5941

Merged
merged 5 commits into from
Apr 26, 2024

Conversation

bowenxia
Copy link
Member

@bowenxia bowenxia commented Apr 26, 2024

What changed?
Add an if statement in when the query has an empty value, query validator will return a difference query.

Why?
One customer that was querying with a empty value had an error in mono repo. It is an edge case that the previous query couldn't handle.

How did you test it?
unit test + manual test with running Pinot locally

Potential risks

Release notes

Documentation Changes

@bowenxia bowenxia changed the title [Pinot] fix bug when querying a field in attr with an empty value [Pinot] fix bug when querying a string field in attr with an empty value Apr 26, 2024
Copy link

codecov bot commented Apr 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.69%. Comparing base (7ea82a5) to head (d846aed).

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

... and 6 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 7ea82a5...d846aed. Read the comment docs.

Copy link
Member

@neil-xie neil-xie left a comment

Choose a reason for hiding this comment

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

LGTM

@bowenxia bowenxia enabled auto-merge (squash) April 26, 2024 20:32
@bowenxia bowenxia merged commit cf2f77a into master Apr 26, 2024
21 checks passed
@bowenxia bowenxia deleted the xbowen_pinot_bug_when_attr_val_is_nil branch April 26, 2024 21:31
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