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

    https://github.com/apache/spark/pull/21667#discussion_r199096057
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileFormat.scala
 ---
    @@ -152,6 +152,16 @@ trait FileFormat {
         }
       }
     
    +  /**
    +   * Returns whether this format supports the given [[DataType]] in 
read/write path.
    +   *
    +   * By default all data types are supported except 
[[CalendarIntervalType]] in write path.
    +   */
    +  def supportDataType(dataType: DataType, isReadPath: Boolean): Boolean = 
dataType match {
    --- End diff --
    
    I wrote CSV's with whitelisting before per @hvanhovell's comment long time 
ago. I was (am still) okay either way but might be good to leave a cc for him.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to