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

    https://github.com/apache/spark/pull/20894#discussion_r189100297
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/CSVOptions.scala
 ---
    @@ -153,6 +153,12 @@ class CSVOptions(
       val samplingRatio =
         parameters.get("samplingRatio").map(_.toDouble).getOrElse(1.0)
     
    +  /**
    +   * Forcibly apply the specified or inferred schema to datasource files.
    +   * If the option is enabled, headers of CSV files will be ignored.
    +   */
    +  val enforceSchema = getBool("enforceSchema", true)
    --- End diff --
    
    As @gatorsmile wrote the name was selected in the perspective that similar 
option can be applied to another datasources that contains type info 
explicitly. CSV doesn't types. How would you propose to check types?


---

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

Reply via email to