File tree Expand file tree Collapse file tree
core/src/main/java/io/substrait/expression
spark/src/main/scala/io/substrait/spark/expression Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -940,6 +940,7 @@ public static AggregationInvocation fromProto(AggregateFunction.AggregationInvoc
940940 }
941941
942942 enum AggregationPhase {
943+ UNSPECIFIED (io .substrait .proto .AggregationPhase .AGGREGATION_PHASE_UNSPECIFIED ),
943944 INITIAL_TO_INTERMEDIATE (
944945 io .substrait .proto .AggregationPhase .AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE ),
945946 INTERMEDIATE_TO_INTERMEDIATE (
Original file line number Diff line number Diff line change @@ -74,6 +74,8 @@ object ToAggregateFunction {
7474 case other => throw new UnsupportedOperationException (s " not currently supported: $other. " )
7575 }
7676 def toSpark (phase : SExpression .AggregationPhase ): AggregateMode = phase match {
77+ case SExpression .AggregationPhase .UNSPECIFIED =>
78+ Final // UNSPECIFIED implies INTERMEDIATE_TO_RESULT
7779 case SExpression .AggregationPhase .INITIAL_TO_INTERMEDIATE => Partial
7880 case SExpression .AggregationPhase .INTERMEDIATE_TO_INTERMEDIATE => PartialMerge
7981 case SExpression .AggregationPhase .INTERMEDIATE_TO_RESULT => Final
You can’t perform that action at this time.
0 commit comments