-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-37527][SQL] Translate more standard aggregate functions for pushdown #35101
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
Changes from all commits
1a27667
ab4d217
a78325b
e53e67d
26699ca
92b92ea
46f01ab
f90bf35
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -721,6 +721,26 @@ object DataSourceStrategy | |
| Some(new Sum(FieldReference(name), agg.isDistinct)) | ||
| case aggregate.Average(PushableColumnWithoutNestedColumn(name), _) => | ||
| Some(new GeneralAggregateFunc("AVG", agg.isDistinct, Array(FieldReference(name)))) | ||
| case aggregate.VariancePop(PushableColumnWithoutNestedColumn(name), _) => | ||
| Some(new GeneralAggregateFunc("VAR_POP", agg.isDistinct, Array(FieldReference(name)))) | ||
| case aggregate.VarianceSamp(PushableColumnWithoutNestedColumn(name), _) => | ||
| Some(new GeneralAggregateFunc("VAR_SAMP", agg.isDistinct, Array(FieldReference(name)))) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI: I am adding backticks around
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the remind.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, shouldn't ask you to change yet. I made some changes again 49348a9
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK. I reverted. |
||
| case aggregate.StddevPop(PushableColumnWithoutNestedColumn(name), _) => | ||
| Some(new GeneralAggregateFunc("STDDEV_POP", agg.isDistinct, Array(FieldReference(name)))) | ||
| case aggregate.StddevSamp(PushableColumnWithoutNestedColumn(name), _) => | ||
| Some(new GeneralAggregateFunc("STDDEV_SAMP", agg.isDistinct, Array(FieldReference(name)))) | ||
| case aggregate.CovPopulation(PushableColumnWithoutNestedColumn(left), | ||
| PushableColumnWithoutNestedColumn(right), _) => | ||
| Some(new GeneralAggregateFunc("COVAR_POP", agg.isDistinct, | ||
| Array(FieldReference(left), FieldReference(right)))) | ||
| case aggregate.CovSample(PushableColumnWithoutNestedColumn(left), | ||
| PushableColumnWithoutNestedColumn(right), _) => | ||
| Some(new GeneralAggregateFunc("COVAR_SAMP", agg.isDistinct, | ||
| Array(FieldReference(left), FieldReference(right)))) | ||
| case aggregate.Corr(PushableColumnWithoutNestedColumn(left), | ||
| PushableColumnWithoutNestedColumn(right), _) => | ||
| Some(new GeneralAggregateFunc("CORR", agg.isDistinct, | ||
| Array(FieldReference(left), FieldReference(right)))) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please update the classdoc of
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK |
||
| case _ => None | ||
| } | ||
| } else { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.