MaxGekk commented on code in PR #37746:
URL: https://github.com/apache/spark/pull/37746#discussion_r961926293
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala:
##########
@@ -541,8 +541,13 @@ private[sql] object QueryCompilationErrors extends
QueryErrorsBase {
new AnalysisException("ADD COLUMN with v1 tables cannot specify NOT NULL.")
}
- def operationOnlySupportedWithV2TableError(operation: String): Throwable = {
- new AnalysisException(s"$operation is only supported with v2 tables.")
+ def operationOnlySupportedWithV2TableError(
+ nameParts: Seq[String],
+ operation: String): Throwable = {
+ new AnalysisException(
+ errorClass = "UNSUPPORTED_FEATURE",
+ errorSubClass = "TABLE_OPERATION",
+ messageParameters = Array(toSQLId(nameParts), operation))
Review Comment:
The operation is a part of SQL statement, correct? Please, wrap it by
`toSQLStmt()`.
--
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]