Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21667#discussion_r201747509
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/CSVFileFormat.scala
 ---
    @@ -153,6 +151,15 @@ class CSVFileFormat extends TextBasedFileFormat with 
DataSourceRegister {
       override def hashCode(): Int = getClass.hashCode()
     
       override def equals(other: Any): Boolean = 
other.isInstanceOf[CSVFileFormat]
    +
    +  override def supportDataType(dataType: DataType, isReadPath: Boolean): 
Boolean = dataType match {
    +    case _: AtomicType => true
    +
    +    case udt: UserDefinedType[_] => supportDataType(udt.sqlType, 
isReadPath)
    --- End diff --
    
    can we do this in 
https://github.com/apache/spark/pull/21667/files#diff-ea05eba8c71b5596561adbbe9755ff36R46
 ?


---

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

Reply via email to