Github user ueshin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21687#discussion_r201264370
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala
 ---
    @@ -172,6 +172,18 @@ object TypeCoercion {
         case _ => None
       }
     
    +  /**
    +   * The method finds a common type for data types that differ only in 
nullable, containsNull
    +   * and valueContainsNull flags. If the input types are too different, 
None is returned.
    +   */
    +  def findCommonTypeDifferentOnlyInNullFlags(t1: DataType, t2: DataType): 
Option[DataType] = {
    --- End diff --
    
    Actually I'd like to use it at #21704.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to