Skip to content

Commit

Permalink
Fix analyze of default expression in struct field to column conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
urosstan-db committed May 15, 2024
1 parent 3082319 commit f7faa1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ private[sql] object CatalogV2Util {
}

if (isDefaultColumn) {
val e = analyze(f, EXISTS_DEFAULT_COLUMN_METADATA_KEY)
val e = analyze(f, statementType = "Column conversion", EXISTS_DEFAULT_COLUMN_METADATA_KEY)
assert(e.resolved && e.foldable,
"The existence default value must be a simple SQL string that is resolved and foldable, " +
"but got: " + f.getExistenceDefaultValue().get)
Expand Down

0 comments on commit f7faa1c

Please sign in to comment.