Skip to content

Commit 754a1df

Browse files
committed
docs: qualify grouped decimal AVG fallback
1 parent 97f605e commit 754a1df

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎spark/src/main/scala/org/apache/comet/serde/aggregates.scala‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ object CometAverage extends CometAggregateExpressionSerde[Average] {
145145

146146
override def getUnsupportedReasons(): Seq[String] = Seq(
147147
"YearMonthIntervalType and DayTimeIntervalType inputs are not supported",
148-
"Grouped decimal `AVG` in ANSI mode falls back to Spark so an overflow in a group that " +
148+
"Grouped `AVG` whose input remains `DECIMAL` after Spark optimization falls back in ANSI " +
149+
"mode so an overflow in a group that " +
149150
"`LIMIT` does not consume cannot fail the query. Every stage evaluating this `AVG`, " +
150151
"including other functions in the same aggregate operator, runs in Spark. Grouped " +
151152
"`TRY_AVG`, legacy-mode " +

0 commit comments

Comments
 (0)