Skip to content

[BEAM-7882] Invoke Spark API incompatible methods by reflection#9370

Merged
iemejia merged 1 commit intoapache:masterfrom
iemejia:BEAM-7882-spark3-reflection
Aug 19, 2019
Merged

[BEAM-7882] Invoke Spark API incompatible methods by reflection#9370
iemejia merged 1 commit intoapache:masterfrom
iemejia:BEAM-7882-spark3-reflection

Conversation

@iemejia
Copy link
Member

@iemejia iemejia commented Aug 17, 2019

It adds also Spark 3 specific version of the methods

R: @RyanSkraba

It adds also Spark 3 specific version of the methods
@iemejia
Copy link
Member Author

iemejia commented Aug 17, 2019

Run Spark ValidatesRunner

@iemejia
Copy link
Member Author

iemejia commented Aug 17, 2019

Run Java Spark PortableValidatesRunner Batch

Copy link
Contributor

@RyanSkraba RyanSkraba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello! This works for me, LGTM! Reflection based on the reported Spark version (and good java comments) is probably the most maintainable way to do this.

@iemejia
Copy link
Member Author

iemejia commented Aug 19, 2019

Thanks @RyanSkraba Yes it seems like the easiest maintainable path. I hesitated between two modules but the changes are relatively small and they impact just a tiny part of the codebase to justify the effort of having separate modules +implementations. Of course we can re evaluate this in the future, the path towards two modules or to let support only for Spark 3 in the future is super straightforward because of this class.

@iemejia iemejia merged commit 3ce0674 into apache:master Aug 19, 2019
@iemejia iemejia deleted the BEAM-7882-spark3-reflection branch August 20, 2019 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants