Skip to content

Conversation

@MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Jan 18, 2020

What changes were proposed in this pull request?

In the PR, I propose move out creation of AvroOption from AvroPartitionReaderFactory.buildReader, and create it earlier in AvroScan.createReaderFactory.

Why are the changes needed?

  • To avoid building AvroOptions from a map of Avro options and Hadoop conf per each partition.
  • If an instance of AvroOptions is built only once at the driver side, we could output warnings while parsing Avro options and don't worry about noisiness of the warnings.

Does this PR introduce any user-facing change?

No

How was this patch tested?

By AvroSuite

@MaxGekk
Copy link
Member Author

MaxGekk commented Jan 18, 2020

This follows up the thread #27174 (comment)

@SparkQA
Copy link

SparkQA commented Jan 18, 2020

Test build #116974 has finished for PR 27272 at commit 16caad6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

Merged to master.

@MaxGekk MaxGekk deleted the avro-options-once-for-read branch June 5, 2020 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants