dbatomic commented on code in PR #45951:
URL: https://github.com/apache/spark/pull/45951#discussion_r1557644836


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/StateStore.scala:
##########
@@ -635,6 +635,22 @@ object StateStore extends Logging {
     storeProvider.getStore(version)
   }
 
+  private def disallowBinaryInequalityColumn(schema: StructType): Unit = {

Review Comment:
   You can use following utility function:
   ```scala
     def isBinaryStable(dataType: DataType): Boolean = 
!dataType.existsRecursively {
       case st: StringType => 
!CollationFactory.fetchCollation(st.collationId).supportsBinaryEquality
       case _ => false
     }
   
   ```



-- 
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]

Reply via email to