Skip to content

Commit 72cbc2f

Browse files
committed
Remove redundant message parameter from INTERNAL_ERROR_INVALID_HIVE_COLUMN_TYPE
The <message> parameter was redundant as the causedBy exception already contains the detailed error message. When the exception is displayed, the inner exception's message was appearing twice - once in the main error message and again in the cause chain. This change removes the redundant parameter and only includes the context-specific information (database and table name) in the error message template.
1 parent f748621 commit 72cbc2f

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

common/utils/src/main/resources/error/error-conditions.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2439,7 +2439,6 @@
24392439
"INTERNAL_ERROR_INVALID_HIVE_COLUMN_TYPE" : {
24402440
"message" : [
24412441
"Failed to convert Hive table to Spark catalog table.",
2442-
"Error: <message>",
24432442
"Database: <dbName>",
24442443
"Table: <tableName>"
24452444
],

sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,6 @@ private[sql] object QueryExecutionErrors extends QueryErrorsBase with ExecutionE
16391639
new SparkException(
16401640
errorClass = "INTERNAL_ERROR_INVALID_HIVE_COLUMN_TYPE",
16411641
messageParameters = Map(
1642-
"message" -> e.getMessage,
16431642
"dbName" -> dbName,
16441643
"tableName" -> tableName),
16451644
cause = e)

0 commit comments

Comments
 (0)