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

[feature] coalesce scalar #9487

Merged
merged 3 commits into from Oct 3, 2022
Merged

[feature] coalesce scalar #9487

merged 3 commits into from Oct 3, 2022

Conversation

61yao
Copy link
Contributor

@61yao 61yao commented Sep 29, 2022

Support coalesce scalar.

Since we only register function with param count now and coalesce has various # of parameters, this PR hardcode 1-5 arguments for coalesce scalar.

Long term plan is to support function registry with var # of args.

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

@codecov-commenter
Copy link

codecov-commenter commented Sep 30, 2022

Codecov Report

Merging #9487 (f2107a3) into master (189fa18) will decrease coverage by 42.79%.
The diff coverage is 22.52%.

@@              Coverage Diff              @@
##             master    #9487       +/-   ##
=============================================
- Coverage     68.72%   25.93%   -42.80%     
+ Complexity     4860       44     -4816     
=============================================
  Files          1924     1913       -11     
  Lines        102425   102164      -261     
  Branches      15542    15516       -26     
=============================================
- Hits          70392    26492    -43900     
- Misses        26994    73005    +46011     
+ Partials       5039     2667     -2372     
Flag Coverage Δ
integration1 25.93% <22.52%> (-0.07%) ⬇️
unittests1 ?
unittests2 ?

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

Impacted Files Coverage Δ
.../pinot/common/function/scalar/ObjectFunctions.java 0.00% <0.00%> (-87.50%) ⬇️
...perator/dociditerators/ScanBasedDocIdIterator.java 0.00% <0.00%> (ø)
...t/core/operator/filter/CombinedFilterOperator.java 0.00% <0.00%> (-80.00%) ⬇️
...ter/predicate/EqualsPredicateEvaluatorFactory.java 58.16% <0.00%> (-26.29%) ⬇️
.../filter/predicate/InPredicateEvaluatorFactory.java 42.85% <0.00%> (-39.55%) ⬇️
.../predicate/NotEqualsPredicateEvaluatorFactory.java 51.78% <0.00%> (-28.03%) ⬇️
...lter/predicate/NotInPredicateEvaluatorFactory.java 55.63% <0.00%> (-22.73%) ⬇️
.../operator/filter/predicate/PredicateEvaluator.java 24.00% <0.00%> (-1.00%) ⬇️
...lter/predicate/RangePredicateEvaluatorFactory.java 66.96% <0.00%> (-18.63%) ⬇️
...rg/apache/pinot/core/plan/AggregationPlanNode.java 51.40% <0.00%> (-37.39%) ⬇️
... and 1361 more

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

Copy link
Contributor

@walterddr walterddr left a comment

Choose a reason for hiding this comment

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

lgtm too also please rebase

@siddharthteotia
Copy link
Contributor

I think this PR will do the ideal solution for function registry #9397

@walterddr walterddr merged commit 4a8fac2 into apache:master Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants