vladimirg-db commented on code in PR #49029:
URL: https://github.com/apache/spark/pull/49029#discussion_r1878035244
##########
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:
Yeah, this is purely internal and is never thrown to the user in normal mode
of operation (only for Analyzer dual runs).
##########
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:
Mostly internal. But if it's a user-specified extension - this error will be
thrown in case it's misconfigured.
--
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]