mkaravel commented on code in PR #45064:
URL: https://github.com/apache/spark/pull/45064#discussion_r1483409046
##########
sql/api/src/main/scala/org/apache/spark/sql/types/StringType.scala:
##########
@@ -26,7 +27,27 @@ import org.apache.spark.annotation.Stable
* @param collationId The id of collation for this StringType.
*/
@Stable
-class StringType private(val collationId: Int) extends AtomicType {
+class StringType private(val collationId: Int) extends AtomicType with
Serializable {
+ /**
+ * Returns whether assigned collation is the default spark collation
(UCS_BASIC).
+ */
+ private def isDefaultCollation: Boolean = collationId ==
StringType.DEFAULT_COLLATION_ID
Review Comment:
Why not making this public? It might be useful in other places.
--
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]