Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/main/resources/error/error-classes.json
Original file line number Diff line number Diff line change
Expand Up @@ -3136,7 +3136,7 @@
"Expected only partition pruning predicates: <nonPartitionPruningPredicates>."
]
},
"_LEGACY_ERROR_TEMP_1206" : {
"COLUMN_NOT_DEFINED" : {
"message" : [
"<colType> column <colName> is not defined in table <tableName>, defined table columns are: <tableCols>."
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2115,7 +2115,7 @@ private[sql] object QueryCompilationErrors extends QueryErrorsBase {
def columnNotDefinedInTableError(
colType: String, colName: String, tableName: String, tableCols: Seq[String]): Throwable = {
new AnalysisException(
errorClass = "_LEGACY_ERROR_TEMP_1206",
errorClass = "COLUMN_NOT_DEFINED",
messageParameters = Map(
"colType" -> colType,
"colName" -> colName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ abstract class DDLSuite extends QueryTest with DDLSuiteBase {
exception = intercept[AnalysisException] {
sql("CREATE TABLE tbl(a int, b string) USING json PARTITIONED BY (c)")
},
errorClass = "_LEGACY_ERROR_TEMP_1206",
errorClass = "COLUMN_NOT_DEFINED",
parameters = Map(
"colType" -> "partition",
"colName" -> "c",
Expand All @@ -547,7 +547,7 @@ abstract class DDLSuite extends QueryTest with DDLSuiteBase {
exception = intercept[AnalysisException] {
sql("CREATE TABLE tbl(a int, b string) USING json CLUSTERED BY (c) INTO 4 BUCKETS")
},
errorClass = "_LEGACY_ERROR_TEMP_1206",
errorClass = "COLUMN_NOT_DEFINED",
parameters = Map(
"colType" -> "bucket",
"colName" -> "c",
Expand Down