Skip to content

Commit

Permalink
Fix nits
Browse files Browse the repository at this point in the history
  • Loading branch information
urosstan-db committed Jun 3, 2024
1 parent 5dcdae8 commit 9813d45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ case class QualifiedColType(
errorClass = "COLUMN_DEFAULT_VALUE_IS_NOT_FOLDABLE_OR_RESOLVED",
messageParameters = Map(
"colName" -> colName,
"defaultValue" -> sql,
"defaultValue" -> sql
)
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -527,15 +527,15 @@ private[sql] object CatalogV2Util {
if (isDefaultColumn) {
val e = analyze(
f,
statementType = "",
statementType = "Column analysis",
metadataKey = EXISTS_DEFAULT_COLUMN_METADATA_KEY)

if (!e.resolved || !e.foldable) {
throw new AnalysisException(
errorClass = "COLUMN_DEFAULT_VALUE_IS_NOT_FOLDABLE_OR_RESOLVED",
messageParameters = Map(
"colName" -> f.name,
"defaultValue" -> f.getExistenceDefaultValue().get,
"defaultValue" -> f.getExistenceDefaultValue().get
)
)
}
Expand Down

0 comments on commit 9813d45

Please sign in to comment.