File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
core/src/main/java/io/substrait/expression
spark/src/main/scala/io/substrait/spark/expression Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -940,6 +940,7 @@ public static AggregationInvocation fromProto(AggregateFunction.AggregationInvoc
940
940
}
941
941
942
942
enum AggregationPhase {
943
+ UNSPECIFIED (io .substrait .proto .AggregationPhase .AGGREGATION_PHASE_UNSPECIFIED ),
943
944
INITIAL_TO_INTERMEDIATE (
944
945
io .substrait .proto .AggregationPhase .AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE ),
945
946
INTERMEDIATE_TO_INTERMEDIATE (
Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ object ToAggregateFunction {
74
74
case other => throw new UnsupportedOperationException (s " not currently supported: $other. " )
75
75
}
76
76
def toSpark (phase : SExpression .AggregationPhase ): AggregateMode = phase match {
77
+ case SExpression .AggregationPhase .UNSPECIFIED =>
78
+ Final // UNSPECIFIED implies INTERMEDIATE_TO_RESULT
77
79
case SExpression .AggregationPhase .INITIAL_TO_INTERMEDIATE => Partial
78
80
case SExpression .AggregationPhase .INTERMEDIATE_TO_INTERMEDIATE => PartialMerge
79
81
case SExpression .AggregationPhase .INTERMEDIATE_TO_RESULT => Final
You can’t perform that action at this time.
0 commit comments