-
Notifications
You must be signed in to change notification settings - Fork 10
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
handle array columns in Trino handler #201
Conversation
Codecov Report
@@ Coverage Diff @@
## main #201 +/- ##
============================================
+ Coverage 70.43% 72.71% +2.28%
- Complexity 1047 1091 +44
============================================
Files 96 96
Lines 4762 4780 +18
Branches 549 550 +1
============================================
+ Hits 3354 3476 +122
+ Misses 1188 1080 -108
- Partials 220 224 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 6 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.
lgtm
if (operator.equals("!=") || operator.equals("NOT IN")) { | ||
// Support only equals and IN operator | ||
if (operator.equals("=") || operator.equals("!=")) { | ||
// Equals (=): CONTAINS(ip_types, 'Bot') |
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.
Nit: changes looks fine. For readability, would it make sense to move to a function?
} else if (operator.equals("IN") || operator.equals("NOT IN")) { | ||
// IN: CARDINALITY(ARRAY_INTERSECT(ip_types, ARRAY['Public Proxy', 'Bot'])) > 0 | ||
// NOT IN: CARDINALITY(ARRAY_INTERSECT(ip_types, ARRAY['Public Proxy', 'Bot'])) = 0 | ||
builder.append("CARDINALITY("); |
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.
Nit: changes looks fine. For readability, would it make sense to move to a function?
Description
Please include a summary of the change, motivation and context.
Testing
Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.
Checklist:
Documentation
Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.