MaxGekk opened a new pull request #27272: [SPARK-30558][SQL] Avoid rebuilding 
`AvroOptions` per each partition
URL: https://github.com/apache/spark/pull/27272
 
 
   ### 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`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to