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

update RewriterConstants so that expr min max would not collide with columns start with "parent" #13357

Merged
merged 6 commits into from
Jun 12, 2024

Conversation

jasperjiaguo
Copy link
Contributor

@jasperjiaguo jasperjiaguo commented Jun 11, 2024

Updated RewriterConstants so that expr min max would not collide with columns start with "parent", tested with unit tests. In production we have turned this on for some cluster having user queries like select parent_ from Table. These queries collided with the rewriter's flag for parent aggregation function and will run into exceptions like

class java.lang.String cannot be cast to class org.apache.pinot.core.query.aggregation.utils.ParentAggregationFunctionResultObject

Tagging this backward incompat as it requires to deploy server and broker to the same version to make the exprmin/exprmax queries run correctly.

@codecov-commenter
Copy link

codecov-commenter commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.99%. Comparing base (59551e4) to head (2a3b787).
Report is 612 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #13357      +/-   ##
============================================
+ Coverage     61.75%   61.99%   +0.24%     
+ Complexity      207      198       -9     
============================================
  Files          2436     2550     +114     
  Lines        133233   140257    +7024     
  Branches      20636    21801    +1165     
============================================
+ Hits          82274    86958    +4684     
- Misses        44911    46702    +1791     
- Partials       6048     6597     +549     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration <0.01% <0.00%> (-0.01%) ⬇️
integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration2 0.00% <0.00%> (ø)
java-11 61.97% <100.00%> (+0.26%) ⬆️
java-21 61.86% <100.00%> (+0.24%) ⬆️
skip-bytebuffers-false 61.99% <100.00%> (+0.24%) ⬆️
skip-bytebuffers-true 61.85% <100.00%> (+34.12%) ⬆️
temurin 61.99% <100.00%> (+0.24%) ⬆️
unittests 61.99% <100.00%> (+0.24%) ⬆️
unittests1 46.57% <100.00%> (-0.32%) ⬇️
unittests2 27.66% <0.00%> (-0.07%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

update enums and fix tests

update RewriterConstants
@jasperjiaguo jasperjiaguo changed the title update RewriterConstants update RewriterConstants so that expr min max would not collide with columns start with "parent_" Jun 12, 2024
@jasperjiaguo jasperjiaguo marked this pull request as ready for review June 12, 2024 00:45
@jasperjiaguo jasperjiaguo added the backward-incompat Referenced by PRs that introduce or fix backward compat issues label Jun 12, 2024
@jasperjiaguo jasperjiaguo changed the title update RewriterConstants so that expr min max would not collide with columns start with "parent_" update RewriterConstants so that expr min max would not collide with columns start with "parent" Jun 12, 2024
Copy link
Member

@jackjlli jackjlli left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for making the fix!

@jasperjiaguo jasperjiaguo merged commit 6303658 into apache:master Jun 12, 2024
20 checks passed
@jasperjiaguo jasperjiaguo deleted the RewriterConstants branch June 12, 2024 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backward-incompat Referenced by PRs that introduce or fix backward compat issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants