-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-38107][SQL] Use error classes in the compilation errors of python/pandas UDFs #35656
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
33e2a95
d81c7fd
310e033
970cce5
669dc8d
a96eb9c
e40f367
66d9ad6
83d56b7
3fc2e2c
18b7c14
55e1f75
fd0ba09
e018d1b
c0928d1
548a32a
d654364
2dcb876
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 |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ package org.apache.spark.sql.execution | |
| import java.util.Locale | ||
|
|
||
| import org.apache.spark.rdd.RDD | ||
| import org.apache.spark.sql.{execution, Strategy} | ||
| import org.apache.spark.sql.{execution, AnalysisException, Strategy} | ||
| import org.apache.spark.sql.catalyst.InternalRow | ||
| import org.apache.spark.sql.catalyst.encoders.RowEncoder | ||
| import org.apache.spark.sql.catalyst.expressions._ | ||
|
|
@@ -373,7 +373,8 @@ abstract class SparkStrategies extends QueryPlanner[SparkPlan] { | |
| namedGroupingExpressions, aggregateExpressions, rewrittenResultExpressions, child) => | ||
|
|
||
| if (aggregateExpressions.exists(PythonUDF.isGroupedAggPandasUDF)) { | ||
| throw QueryCompilationErrors.groupAggPandasUDFUnsupportedByStreamingAggError() | ||
| throw new AnalysisException( | ||
| "Streaming aggregation doesn't support group aggregate pandas UDF") | ||
|
Comment on lines
+376
to
+377
Member
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. Could you clarify why did you make this replacement?
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. Because the existing And, also refer to https://github.com/apache/spark/pull/35656/files#r814517495. Btw, maybe do we also want to leave some comment to the code base? |
||
| } | ||
|
|
||
| val sessionWindowOption = namedGroupingExpressions.find { p => | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This message is changed from
"Pandas UDF aggregate expressions are currently not supported in pivot."to"Pivot does not support Pandas UDF aggregate expressions."as suggested in Error Message Guidelines.