-
Notifications
You must be signed in to change notification settings - Fork 838
Handle custom string not equal case for Pinot #6266
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
Conversation
@@ -453,21 +453,22 @@ func processCustomKeyword(operator string, colNameStr string, colValStr string) | |||
colNameStr, operator, colValStr, colNameStr, operator, colValStr) | |||
} | |||
|
|||
func processCustomString(comparisonExpr *sqlparser.ComparisonExpr, colNameStr string, colValStr string) string { | |||
// change to like statement for partial match | |||
comparisonExpr.Operator = sqlparser.LikeStr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part was a legacy code from the first version of pinot_query_validator. Forgot to delete previously.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
... and 8 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
@bowenxia it's not super clear to me what the bug actually was (sorry, I may have not had enough context or missed something). Do you mind adding an example of a query that was failing ? |
What changed?
Why?
For example, when search for --query "CustomStringField != 'xxx'", it had the same result as "CustomStringField = 'xxx'"
How did you test it?
Unit test, manually test in QueryBuilder
Potential risks
no
Release notes
Documentation Changes