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

Disable JsonStatementOptimizer. #7919

Merged
merged 2 commits into from
Dec 17, 2021

Conversation

amrishlal
Copy link
Contributor

Description

Disabling JsonStatementOptimizer (the class that processes identifier dot notation on JSON columns), until we can gain more confidence in using dot notation.

Upgrade Notes

Does this PR prevent a zero down-time upgrade? (Assume upgrade order: Controller, Broker, Server, Minion)

  • Yes (Please label as backward-incompat, and complete the section below on Release Notes)

Does this PR fix a zero-downtime upgrade introduced earlier?

  • Yes (Please label this as backward-incompat, and complete the section below on Release Notes)

Does this PR otherwise need attention when creating release notes? Things to consider:

  • New configuration options
  • Deprecation of configurations
  • Signature changes to public methods/interfaces
  • New plugins added or old plugins removed
  • Yes (Please label this PR as release-notes and complete the section on Release Notes)

Release Notes

Documentation

@codecov-commenter
Copy link

codecov-commenter commented Dec 17, 2021

Codecov Report

Merging #7919 (d15e8f2) into master (aa2da07) will decrease coverage by 0.16%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #7919      +/-   ##
============================================
- Coverage     71.32%   71.16%   -0.17%     
- Complexity     4092     4115      +23     
============================================
  Files          1589     1593       +4     
  Lines         82139    82365     +226     
  Branches      12270    12270              
============================================
+ Hits          58589    58614      +25     
- Misses        19578    19805     +227     
+ Partials       3972     3946      -26     
Flag Coverage Δ
integration1 29.07% <100.00%> (-0.18%) ⬇️
integration2 27.54% <100.00%> (-0.05%) ⬇️
unittests1 68.12% <100.00%> (-0.21%) ⬇️
unittests2 14.33% <0.00%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
...ry/optimizer/statement/JsonStatementOptimizer.java 0.00% <ø> (-77.64%) ⬇️
...che/pinot/core/query/optimizer/QueryOptimizer.java 100.00% <100.00%> (ø)
.../pinot/spi/exception/BadQueryRequestException.java 66.66% <0.00%> (-33.34%) ⬇️
...r/filter/predicate/PredicateEvaluatorProvider.java 69.23% <0.00%> (-11.54%) ⬇️
...org/apache/pinot/sql/parsers/CalciteSqlParser.java 87.28% <0.00%> (-4.81%) ⬇️
...re/common/evaluators/DefaultJsonPathEvaluator.java 29.32% <0.00%> (-4.60%) ⬇️
.../helix/core/minion/MinionInstancesCleanupTask.java 77.27% <0.00%> (-4.55%) ⬇️
.../startree/v2/builder/OffHeapSingleTreeBuilder.java 87.42% <0.00%> (-4.20%) ⬇️
...eaders/forward/FixedBitSVForwardIndexReaderV2.java 93.33% <0.00%> (-3.34%) ⬇️
... and 43 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa2da07...d15e8f2. Read the comment docs.

Copy link
Contributor

@Jackie-Jiang Jackie-Jiang left a comment

Choose a reason for hiding this comment

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

LGTM with minor comment

@@ -51,7 +50,7 @@
new TimePredicateFilterOptimizer(), new MergeRangeFilterOptimizer());

private static final List<StatementOptimizer> STATEMENT_OPTIMIZERS =
Arrays.asList(new JsonStatementOptimizer(), new StringPredicateFilterOptimizer());
Arrays.asList(new StringPredicateFilterOptimizer());
Copy link
Contributor

Choose a reason for hiding this comment

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

(minor) Collections.singletonList() instead

@siddharthteotia siddharthteotia merged commit 6037cac into apache:master Dec 17, 2021
@amrishlal amrishlal deleted the remove-dot-notation branch December 17, 2021 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants