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

    https://github.com/apache/spark/pull/21769#discussion_r202831899
  
    --- Diff: 
external/avro/src/main/scala/org/apache/spark/sql/avro/AvroFileFormat.scala ---
    @@ -64,7 +64,7 @@ private[avro] class AvroFileFormat extends FileFormat 
with DataSourceRegister {
         // Schema evolution is not supported yet. Here we only pick a single 
random sample file to
         // figure out the schema of the whole dataset.
         val sampleFile =
    -      if 
(conf.getBoolean(AvroFileFormat.IgnoreFilesWithoutExtensionProperty, true)) {
    +      if (AvroFileFormat.ignoreFilesWithoutExtensions(conf)) {
    --- End diff --
    
    Can we submit a separate PR to add a new option for AVRO? We should not 
rely on hadoopConf to control the behaviors of AVRO.


---

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

Reply via email to