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
37 changes: 22 additions & 15 deletions common/utils/src/main/resources/error/error-conditions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2444,6 +2444,20 @@
],
"sqlState" : "XX000"
},
"INTERNAL_ERROR_INVALID_HIVE_COLUMN_TYPE" : {
"message" : [
"Failed to convert Hive table to Spark catalog table.",
"Database: <dbName>",
"Table: <tableName>"
],
"sqlState" : "XX000"
},
"INTERNAL_ERROR_INVALID_PARTITION_FILTER_VALUE" : {
"message" : [
"Partition filter value cannot contain both double quotes (\") and single quotes (')."
],
"sqlState" : "XX000"
},
"INTERNAL_ERROR_MEMORY" : {
"message" : [
"<message>"
Expand Down Expand Up @@ -2494,6 +2508,14 @@
],
"sqlState" : "XX000"
},
"INTERNAL_ERROR_SERDE_INTERFACE_NOT_FOUND" : {
"message" : [
"The SerDe interface was removed since Hive 2.3 (HIVE-15167).",
"Please migrate your custom SerDes to Hive 2.3 or later.",
"For more details, see: https://issues.apache.org/jira/browse/HIVE-15167"
],
"sqlState" : "XX000"
},
"INTERNAL_ERROR_SHUFFLE" : {
"message" : [
"<message>"
Expand Down Expand Up @@ -9021,21 +9043,6 @@
"Cannot create staging directory: <message>"
]
},
"_LEGACY_ERROR_TEMP_2186" : {
"message" : [
"The SerDe interface removed since Hive 2.3(HIVE-15167). Please migrate your custom SerDes to Hive 2.3. See HIVE-15167 for more details."
]
},
"_LEGACY_ERROR_TEMP_2187" : {
"message" : [
"<message>, db: <dbName>, table: <tableName>."
]
},
"_LEGACY_ERROR_TEMP_2192" : {
"message" : [
"Partition filter cannot have both `\"` and `'` characters."
]
},
"_LEGACY_ERROR_TEMP_2194" : {
"message" : [
"Unsupported Hive Metastore version <version>. Please set <key> with a valid version."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1629,17 +1629,16 @@ private[sql] object QueryExecutionErrors extends QueryErrorsBase with ExecutionE

def serDeInterfaceNotFoundError(e: NoClassDefFoundError): SparkClassNotFoundException = {
new SparkClassNotFoundException(
errorClass = "_LEGACY_ERROR_TEMP_2186",
messageParameters = Map.empty,
errorClass = "INTERNAL_ERROR_SERDE_INTERFACE_NOT_FOUND",
messageParameters = Map.empty[String, String],
cause = e)
}

def convertHiveTableToCatalogTableError(
e: SparkException, dbName: String, tableName: String): Throwable = {
new SparkException(
errorClass = "_LEGACY_ERROR_TEMP_2187",
errorClass = "INTERNAL_ERROR_INVALID_HIVE_COLUMN_TYPE",
messageParameters = Map(
"message" -> e.getMessage,
"dbName" -> dbName,
"tableName" -> tableName),
cause = e)
Expand All @@ -1661,8 +1660,7 @@ private[sql] object QueryExecutionErrors extends QueryErrorsBase with ExecutionE
}

def invalidPartitionFilterError(): SparkUnsupportedOperationException = {
new SparkUnsupportedOperationException(
errorClass = "_LEGACY_ERROR_TEMP_2192")
new SparkUnsupportedOperationException("INTERNAL_ERROR_INVALID_PARTITION_FILTER_VALUE")
}

def getPartitionMetadataByFilterError(e: Exception): SparkRuntimeException = {
Expand Down