gengliangwang opened a new pull request #24251: Fallback v1 rule
URL: https://github.com/apache/spark/pull/24251
 
 
   ## What changes were proposed in this pull request?
   
   In the first PR for file source V2, there was a rule for falling back Orc V2 
table to OrcFileFormat: 
https://github.com/apache/spark/pull/23383/files#diff-57e8244b6964e4f84345357a188421d5R34
   
   As we are migrating more file sources to data source V2, we should make the 
rule more generic. This PR proposes to:
   1. Rename the rule `FallbackOrcDataSourceV2 ` to `FallBackFileSourceV2`.The 
name is more generic. And we use "fall back" as verb, while "fallback" is noun.
   2. Rename the method `fallBackFileFormat` in `FileDataSourceV2` to 
`fallbackFileFormat`. Here we should use "fallback" as noun.
   3. Add new method `fallbackFileFormat` in `FileTable`. This is for falling 
back to V1 in rule `FallbackOrcDataSourceV2 `.
   
   ## How was this patch tested?
   
   Existing Unit tests.
   

----------------------------------------------------------------
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