uros-b commented on code in PR #58759:
URL: https://github.com/apache/spark/pull/58759#discussion_r4206415802
##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -8146,6 +8146,12 @@
},
"sqlState" : "42601"
},
+ "TABLES_OR_VIEWS_NOT_IN_SAME_DATABASE" : {
+ "message" : [
+ "Cannot retrieve tables or views that do not belong to the same
database. Requested: <qualifiedTableNames>."
+ ],
+ "sqlState" : "0A000"
Review Comment:
Sure, Databricks originated the subclass, but this doesn't necessarily mean
that OSS Spark cannot use it. For example, CANNOT_RENAME_ACROSS_SCHEMA already
ships 0AKD0 in Spark.
I still prefer 0AKD0 here. 0A000 is the generic "feature not supported"
bucket. This is a cross-database restriction on SessionCatalog.getTablesByName,
the same shape as a cross-schema rename.
@srielau WDYT? which state for this catalog restriction
--
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]