PaysonXu commented on code in PR #46320:
URL: https://github.com/apache/spark/pull/46320#discussion_r1740243559
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryCompilationErrors.scala:
##########
@@ -3548,17 +3548,14 @@ private[sql] object QueryCompilationErrors extends
QueryErrorsBase with Compilat
}
def failedToParseExistenceDefaultAsLiteral(fieldName: String, defaultValue:
String): Throwable = {
- new AnalysisException(
- errorClass = "_LEGACY_ERROR_TEMP_1344",
- messageParameters = Map(
- "fieldName" -> fieldName,
- "defaultValue" -> defaultValue))
+ SparkException.internalError(s"parse existence default as literal err," +
+ s" field name: $fieldName, value: $defaultValue")
}
def defaultReferencesNotAllowedInDataSource(
statementType: String, dataSource: String): Throwable = {
new AnalysisException(
- errorClass = "_LEGACY_ERROR_TEMP_1345",
+ errorClass = "DEFAULT_UNSUPPORTED",
messageParameters = Map(
"statementType" -> statementType,
Review Comment:
Ok, I will modify it together after @dtenedor confirm the change 44 to
internal err.
--
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]