srowen opened a new pull request #27033: [SPARK-30132][CORE] Avoid Scala 2.13 
compile error by delegating to rather than subclassing Hadoop FS classes
URL: https://github.com/apache/spark/pull/27033
 
 
   ### What changes were proposed in this pull request?
   
   For some reason, some Hadoop classes themselves cause errors in Scala 2.13 
when subclassed. It complains that Hadoop's LocalFileSystem hierarchy for 
example has an invalid override of `append`, when I'm not sure I see the issue. 
   
   Anyway, rather than potentially wait on a fix, we can simply prefer 
delegation to subclassing, and other tricks.
   
   ### Why are the changes needed?
   
   Cross building for 2.13.
   
   ### Does this PR introduce any user-facing change?
   
   No. All changed code is test code.
   
   ### How was this patch tested?
   
   Manually ran 2.13 compilation to ensure it fixes the compile issue.
   Existing tests will show whether it still works in 2.12.

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