You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2018/07/21 03:06:00 UTC

[jira] [Resolved] (SPARK-24836) New option - ignoreExtension

     [ https://issues.apache.org/jira/browse/SPARK-24836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xiao Li resolved SPARK-24836.
-----------------------------
       Resolution: Fixed
         Assignee: Maxim Gekk
    Fix Version/s: 2.4.0

> New option - ignoreExtension
> ----------------------------
>
>                 Key: SPARK-24836
>                 URL: https://issues.apache.org/jira/browse/SPARK-24836
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.3.1
>            Reporter: Maxim Gekk
>            Assignee: Maxim Gekk
>            Priority: Minor
>             Fix For: 2.4.0
>
>
> Need to add new option for Avro datasource - *ignoreExtension*. It should control ignoring of the .avro extensions. If it is set to *true* (by default), files with and without .avro extensions should be loaded. Example of usage:
> {code:scala}
> spark
>   .read
>   .option("ignoreExtension", false)
>   .avro("path to avro files")
> {code}
> The option duplicates Hadoop's config avro.mapred.ignore.inputs.without.extension which is taken into account by Avro datasource now and can be set like:
> {code:scala}
> spark
>   .sqlContext
>   .sparkContext
>   .hadoopConfiguration
>   .set("avro.mapred.ignore.inputs.without.extension", "true")
> {code}
> The ignoreExtension option must override avro.mapred.ignore.inputs.without.extension.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org