Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jovanm-db committed Nov 15, 2024
1 parent e35b6e1 commit bc676f2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,9 @@ object DataType {
// String types with possibly different collations are compatible.
case (CharType(l1), CharType(l2)) => l1 == l2
case (VarcharType(l1), VarcharType(l2)) => l1 == l2
case (StringType, StringType) => true
case (CharType(_) | VarcharType(_), StringType) => false
case (StringType, CharType(_) | VarcharType(_)) => false
case (_: StringType, _: StringType) => true

case (fromDataType, toDataType) => fromDataType == toDataType
}
Expand Down

0 comments on commit bc676f2

Please sign in to comment.