-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
refactor argmin/max to exprmin/max and make it calcite compliant #11296
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11296 +/- ##
==========================================
- Coverage 0.11% 0.11% -0.01%
==========================================
Files 2230 2231 +1
Lines 120140 120151 +11
Branches 18218 18218
==========================================
Hits 137 137
- Misses 119983 119994 +11
Partials 20 20
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 10 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
PARENTARGMAX(CommonConstants.RewriterConstants.PARENT_AGGREGATION_NAME_PREFIX + ARGMAX.getName()), | ||
CHILDARGMIN(CommonConstants.RewriterConstants.CHILD_AGGREGATION_NAME_PREFIX + ARGMIN.getName()), | ||
CHILDARGMAX(CommonConstants.RewriterConstants.CHILD_AGGREGATION_NAME_PREFIX + ARGMAX.getName()), | ||
EXPRMIN("exprMin"), |
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.
You may need to update here for making v2 query engine work
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.
Updated, PTAL, thanks!
@jasperjiaguo - can we update the user docs please when you get a chance ? |
fixed https://docs.pinot.apache.org/configuration-reference/functions/arg_min-arg_max |
First PR for #11254
Rename argmin/max function to exprmin/max, swap the measuring/projection column
new signature:
exprmin/max(projectCol, measureCol1 [, measureCol2]*)