MaxGekk commented on code in PR #44277:
URL: https://github.com/apache/spark/pull/44277#discussion_r1423086649
##########
common/utils/src/main/resources/error/error-classes.json:
##########
@@ -6705,6 +6705,259 @@
"Failed to get block <blockId>, which is not a shuffle block"
]
},
+ "_LEGACY_ERROR_TEMP_3050" : {
+ "message" : [
+ "Cannot modify the value of a static config: <k>"
+ ]
+ },
+ "_LEGACY_ERROR_TEMP_3051" : {
+ "message" : [
+ "When resolving <u>, fail to find subplan with plan_id=<planId> in <q>"
+ ]
+ },
+ "_LEGACY_ERROR_TEMP_3052" : {
+ "message" : [
+ "Unexpected resolved action: <other>"
+ ]
+ },
+ "_LEGACY_ERROR_TEMP_3053" : {
+ "message" : [
+ "Unexpected WHEN NOT MATCHED action: <other>"
+ ]
+ },
+ "_LEGACY_ERROR_TEMP_3054" : {
+ "message" : [
+ "<expr> is not currently supported"
+ ]
+ },
+ "_LEGACY_ERROR_TEMP_3055" : {
+ "message" : [
+ "ScalarFunction '<scalarFunc.name>' neither implement magic method nor
override 'produceResult'"
+ ]
+ },
+ "_LEGACY_ERROR_TEMP_3056" : {
+ "message" : [
+ "Unexpected row-level read relations (allow multiple =
<allowMultipleReads>): <other>"
+ ]
+ },
+ "_LEGACY_ERROR_TEMP_3057" : {
+ "message" : [
+ "Cannot retrieve row-level operation from <table>"
+ ]
+ },
+ "_LEGACY_ERROR_TEMP_3058" : {
+ "message" : [
+ "Found duplicate column(s) <checkType>: <duplicateColumns>"
Review Comment:
It is good example, actually. `DUPLICATE_KEY` is supposed to be raised in
the case of duplicate keys in partitions, but `_LEGACY_ERROR_TEMP_3058` is
about columns. Maybe we can introduce some more generic error class, or or
re-use existing one or maybe not. Need to think and discuss that separately. In
this PR, I just required all components in Spark SQL provide an error class.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]