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

refactor argmin/max to exprmin/max and make it calcite compliant #11296

Merged
merged 4 commits into from
Aug 11, 2023

Conversation

jasperjiaguo
Copy link
Contributor

@jasperjiaguo jasperjiaguo commented Aug 8, 2023

First PR for #11254
Rename argmin/max function to exprmin/max, swap the measuring/projection column

new signature:
exprmin/max(projectCol, measureCol1 [, measureCol2]*)

@codecov-commenter
Copy link

codecov-commenter commented Aug 8, 2023

Codecov Report

Merging #11296 (d3e6b77) into master (a6e23c1) will decrease coverage by 0.01%.
Report is 8 commits behind head on master.
The diff coverage is 0.00%.

@@            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              
Flag Coverage Δ
integration1temurin11 0.00% <0.00%> (ø)
integration1temurin17 0.00% <0.00%> (ø)
integration1temurin20 0.00% <0.00%> (ø)
integration2temurin11 0.00% <0.00%> (ø)
integration2temurin17 0.00% <0.00%> (ø)
integration2temurin20 0.00% <0.00%> (ø)
unittests1temurin11 0.00% <0.00%> (ø)
unittests1temurin17 0.00% <0.00%> (ø)
unittests1temurin20 0.00% <0.00%> (ø)
unittests2temurin11 0.11% <0.00%> (-0.01%) ⬇️
unittests2temurin17 0.11% <0.00%> (-0.01%) ⬇️
unittests2temurin20 0.11% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...pinot/sql/parsers/rewriter/ExprMinMaxRewriter.java 0.00% <0.00%> (ø)
...org/apache/pinot/core/common/ObjectSerDeUtils.java 0.00% <0.00%> (ø)
...gregation/function/AggregationFunctionFactory.java 0.00% <0.00%> (ø)
...aggregation/function/ChildAggregationFunction.java 0.00% <ø> (ø)
...n/function/ChildExprMinMaxAggregationFunction.java 0.00% <0.00%> (ø)
.../function/ParentExprMinMaxAggregationFunction.java 0.00% <0.00%> (ø)
...s/exprminmax/ExprMinMaxMeasuringValSetWrapper.java 0.00% <ø> (ø)
...aggregation/utils/exprminmax/ExprMinMaxObject.java 0.00% <0.00%> (ø)
.../exprminmax/ExprMinMaxProjectionValSetWrapper.java 0.00% <ø> (ø)
...tion/utils/exprminmax/ExprMinMaxWrapperValSet.java 0.00% <ø> (ø)
... and 1 more

... and 10 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jasperjiaguo jasperjiaguo marked this pull request as ready for review August 8, 2023 21:03
@xiangfu0 xiangfu0 self-requested a review August 8, 2023 22:49
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"),
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated, PTAL, thanks!

@Jackie-Jiang Jackie-Jiang added enhancement release-notes Referenced by PRs that need attention when compiling the next release notes labels Aug 11, 2023
@Jackie-Jiang Jackie-Jiang merged commit c6dd50a into apache:master Aug 11, 2023
@siddharthteotia
Copy link
Contributor

@jasperjiaguo - can we update the user docs please when you get a chance ?

@jasperjiaguo
Copy link
Contributor Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature release-notes Referenced by PRs that need attention when compiling the next release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants