MaxGekk commented on code in PR #49029:
URL: https://github.com/apache/spark/pull/49029#discussion_r1877597417
##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -70,6 +70,12 @@
],
"sqlState" : "42000"
},
+ "AMBIGUOUS_RESOLVER_EXTENSION" : {
+ "message" : [
+ "The single-pass analyzer cannot process this query or command because
the extension choice for <operator> is ambiguous: <extensions>."
+ ],
+ "sqlState" : "0A000"
Review Comment:
Let's introduce new one, for instance `42705`. BTW, should users treat this
error as their fault or internal Spark's compiler error?
##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -1649,6 +1655,39 @@
],
"sqlState" : "22000"
},
+ "HYBRID_ANALYZER_EXCEPTION" : {
+ "message" : [
+ "An failure occurred when attempting to resolve a query or command with
both the legacy fixed-point analyzer as well as the single-pass resolver."
+ ],
+ "subClass" : {
+ "FIXED_POINT_FAILED_SINGLE_PASS_SUCCEEDED" : {
+ "message" : [
+ "Fixed-point resolution failed, but single-pass resolution
succeeded.",
+ "Single-pass analyzer output:",
+ "<singlePassOutput>"
+ ]
+ },
+ "LOGICAL_PLAN_COMPARISON_MISMATCH" : {
+ "message" : [
+ "Outputs of fixed-point and single-pass analyzers do not match.",
+ "Fixed-point analyzer output:",
+ "<fixedPointOutput>",
+ "Single-pass analyzer output:",
+ "<singlePassOutput>"
+ ]
+ },
+ "OUTPUT_SCHEMA_COMPARISON_MISMATCH" : {
+ "message" : [
+ "Output schemas of fixed-point and single-pass analyzers do not
match.",
+ "Fixed-point analyzer output schema:",
+ "<fixedPointOutputSchema>",
+ "Single-pass analyzer output schema:",
+ "<singlePassOutputSchema>"
+ ]
+ }
+ },
+ "sqlState" : "0A000"
Review Comment:
Can we treat such errors as internals in the class:
```
"XX": "Internal Error"
```
?
--
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]