cloud-fan commented on code in PR #46083:
URL: https://github.com/apache/spark/pull/46083#discussion_r1568600521
##########
sql/api/src/main/scala/org/apache/spark/sql/types/DataType.scala:
##########
@@ -454,4 +454,29 @@ object DataType {
case (fromDataType, toDataType) => fromDataType == toDataType
}
}
+
+ /**
+ * Compares two types, ignoring nullability of ArrayType, MapType,
StructType, ignoring case
+ * sensitivity of field names in StructType as well as differences in
collation for String types.
+ */
+ def equalsIgnoreCaseNullabilityAndStringTypes(from: DataType, to: DataType):
Boolean = {
Review Comment:
```suggestion
def equalsIgnoreCaseNullabilityAndCollation(from: DataType, to: DataType):
Boolean = {
```
--
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]