Skip to content
This repository was archived by the owner on Dec 20, 2018. It is now read-only.

Conversation

@MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Jul 14, 2018

What changes were proposed in this pull request?

In the PR, I propose to change the default behaviour of AVRO datasource which currently ignores files without .avro extension in read by default. This PR sets the default value for avro.mapred.ignore.inputs.without.extension to false in the case if the parameter is not set by an user.

How was this patch tested?

Added a test file without extension in AVRO format, and new test for reading the file with and wihout specified schema.

@codecov-io
Copy link

codecov-io commented Jul 14, 2018

Codecov Report

Merging #286 into master will increase coverage by 0.33%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #286      +/-   ##
==========================================
+ Coverage   92.23%   92.56%   +0.33%     
==========================================
  Files           5        5              
  Lines         322      323       +1     
  Branches       43       41       -2     
==========================================
+ Hits          297      299       +2     
+ Misses         25       24       -1

@MaxGekk MaxGekk changed the title Do not ignore avro files without extensions Do not ignore avro files without extensions by default Jul 14, 2018
@gengliangwang
Copy link
Contributor

gengliangwang commented Jul 14, 2018

Left some comments in apache/spark#21769 .

@MaxGekk
Copy link
Member Author

MaxGekk commented Jul 17, 2018

@gengliangwang I ported the commit apache/spark@ba437fc . Please, take a look at the PR again.

@gengliangwang
Copy link
Contributor

Thanks, merge to master.

@gengliangwang gengliangwang merged commit b52a8de into databricks:master Jul 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants