Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankandic committed Jan 23, 2025
1 parent dd78437 commit 150ae4a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ object ResolveDefaultStringTypes extends Rule[LogicalPlan] {
expression.setTagValue(CAST_ADDED_TAG, ())
newType => {
val replacedType = replaceDefaultStringType(expression.dataType, newType)
if (newType == StringType || replacedType.sameType(newType)) {
if (newType == StringType) {
expression
} else {
Cast(expression, replacedType)
Expand Down

0 comments on commit 150ae4a

Please sign in to comment.