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

    https://github.com/apache/spark/pull/21769#discussion_r202526423
  
    --- 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 --
    
    The Hadoop config can be changed like:
    ```scala
    spark
      .sqlContext
      .sparkContext
      .hadoopConfiguration
      .set("avro.mapred.ignore.inputs.without.extension", "true")
    ```


---

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

Reply via email to