Skip to content

Commit

Permalink
optimize error class name
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneguow committed Jun 14, 2024
1 parent 4ea7846 commit 8ba72a2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4688,7 +4688,7 @@
"SHOW CREATE TABLE doesn't support transactional Hive table. Please use `SHOW CREATE TABLE <table> AS SERDE` to show Hive DDL instead."
]
},
"WITH_UNNECESSARY_SERDE_PARAMETER" : {
"ON_SPARK_DATA_SOURCE_TABLE_WITH_AS_SERDE" : {
"message" : [
"<table> is a Spark data source table. Use `SHOW CREATE TABLE` without `AS SERDE` instead."
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2918,7 +2918,7 @@ private[sql] object QueryCompilationErrors extends QueryErrorsBase with Compilat
def showCreateTableAsSerdeNotAllowedOnSparkDataSourceTableError(
table: TableIdentifier): Throwable = {
new AnalysisException(
errorClass = "UNSUPPORTED_SHOW_CREATE_TABLE.WITH_UNNECESSARY_SERDE_PARAMETER",
errorClass = "UNSUPPORTED_SHOW_CREATE_TABLE.ON_SPARK_DATA_SOURCE_TABLE_WITH_AS_SERDE",
messageParameters = Map("table" -> table.toString))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ trait ShowCreateTableSuiteBase extends command.ShowCreateTableSuiteBase
exception = intercept[AnalysisException] {
getShowCreateDDL(t, true)
},
errorClass = "UNSUPPORTED_SHOW_CREATE_TABLE.WITH_UNNECESSARY_SERDE_PARAMETER",
errorClass = "UNSUPPORTED_SHOW_CREATE_TABLE.ON_SPARK_DATA_SOURCE_TABLE_WITH_AS_SERDE",
sqlState = "0A000",
parameters = Map("table" -> "`spark_catalog`.`ns1`.`tbl`")
)
Expand Down

0 comments on commit 8ba72a2

Please sign in to comment.