MaxGekk commented on code in PR #51955:
URL: https://github.com/apache/spark/pull/51955#discussion_r2276516405
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala:
##########
@@ -567,18 +567,9 @@ private[sql] object QueryCompilationErrors extends
QueryErrorsBase with Compilat
origin = t.origin)
}
- def insertIntoViewNotAllowedError(identifier: TableIdentifier, t:
TreeNode[_]): Throwable = {
- new AnalysisException(
- errorClass = "EXPECT_TABLE_NOT_VIEW.NO_ALTERNATIVE",
- messageParameters = Map(
- "viewName" -> toSQLId(identifier.nameParts),
- "operation" -> "INSERT"),
- origin = t.origin)
- }
-
def writeIntoViewNotAllowedError(identifier: TableIdentifier, t:
TreeNode[_]): Throwable = {
new AnalysisException(
- errorClass = "_LEGACY_ERROR_TEMP_1011",
+ errorClass = "CANNOT_WRITE_VIEW",
messageParameters = Map("identifier" -> identifier.toString),
Review Comment:
Could you quote `identifier` by wrapping it via `toSQLId`, please.
--
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]