-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-49538][SQL][TESTS] Detect unused error message parameters #48026
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
77971ff
89c2062
a3699f0
337b2a9
3a3f6e3
ff8aedb
0b25486
05ef7f5
bf00d0d
b24dae2
55af118
bc72974
07df49a
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 |
|---|---|---|
|
|
@@ -904,7 +904,7 @@ | |
| }, | ||
| "NON_STRING_TYPE" : { | ||
| "message" : [ | ||
| "all arguments must be strings." | ||
| "all arguments of the function <funcName> must be strings." | ||
| ] | ||
| }, | ||
| "NULL_TYPE" : { | ||
|
|
@@ -6222,7 +6222,7 @@ | |
| "Detected implicit cartesian product for <joinType> join between logical plans", | ||
| "<leftPlan>", | ||
| "and", | ||
| "rightPlan", | ||
| "<rightPlan>", | ||
|
Member
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. The purpose of this PR is to detect mistakes like this. |
||
| "Join condition is missing or trivial.", | ||
| "Either: use the CROSS JOIN syntax to allow cartesian products between these relations, or: enable implicit cartesian products by setting the configuration variable spark.sql.crossJoin.enabled=true." | ||
| ] | ||
|
|
@@ -7827,7 +7827,7 @@ | |
| }, | ||
| "_LEGACY_ERROR_TEMP_3055" : { | ||
|
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. Nit: If we're already touching this _LEGACY, could we just name it? (is this an internal error??)
Member
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. I opened the starter task https://issues.apache.org/jira/browse/SPARK-49549 @mitkedb FYI. |
||
| "message" : [ | ||
| "ScalarFunction '<scalarFunc.name>' neither implement magic method nor override 'produceResult'" | ||
| "ScalarFunction <scalarFunc> neither implement magic method nor override 'produceResult'" | ||
MaxGekk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ] | ||
| }, | ||
| "_LEGACY_ERROR_TEMP_3056" : { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -371,13 +371,7 @@ abstract class StreamExecution( | |
| messageParameters = Map( | ||
| "id" -> id.toString, | ||
| "runId" -> runId.toString, | ||
| "message" -> message, | ||
| "queryDebugString" -> toDebugString(includeLogicalPlan = isInitialized), | ||
| "startOffset" -> getLatestExecutionContext().startOffsets.toOffsetSeq( | ||
| sources.toSeq, getLatestExecutionContext().offsetSeqMetadata).toString, | ||
| "endOffset" -> getLatestExecutionContext().endOffsets.toOffsetSeq( | ||
| sources.toSeq, getLatestExecutionContext().offsetSeqMetadata).toString | ||
|
Comment on lines
-375
to
-379
Member
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. As @HeartSaVioR mentioned in a comment, the parameters are included in
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. Yeah not sure why this passed through params as we have params in constructor. Thanks for fixing this! |
||
| )) | ||
| "message" -> message)) | ||
|
|
||
| errorClassOpt = e match { | ||
| case t: SparkThrowable => Option(t.getErrorClass) | ||
|
|
||
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.
Good catch!