[SPARK-45029][CONNECT][TESTS] Ignore from_protobuf messageClassName/from_protobuf messageClassName options in PlanGenerationTestSuite
#42751
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This pr aims ignore
from_protobuf messageClassNameandfrom_protobuf messageClassName optionsinPlanGenerationTestSuiteand remove the related golden files, after this changefrom_protobuf_messageClassNameandfrom_protobuf_messageClassName_optionsinProtoToParsedPlanTestSuitebe ignored too.Why are the changes needed?
SPARK-43646 | (#42236) makes both Maven and SBT use the shaded
spark-protobufmodule when testing the connect module, this allowsmvn clean installandmvn package testto successfully pass tests. But ifmvn clean testis executed directly, an errorpackage org.sparkproject.spark_protobuf.protobuf does not existwill occur. This is becausemvn clean testdirectly uses the classes file of thespark-protobufmodule for testing, without the 'package', hence it does notshadeandrelocateprotobuf.On the other hand, the change of SPARK-43646 breaks the usability of importing Spark as a Maven project into IDEA(#42236 (comment)).
So #42746 revert the change of SPARK-43646.
It's difficult to find a perfect solution to solve this maven test issues now, as in certain scenarios tests would use the
shaded spark-protobuf jar, likemvn package test, while in some other scenarios it will use theunshaded classes directory, such asmvn clean test. so this pr ignores the relevant tests first and leaves a TODO(SPARK-45030), to re-enable these tests when we find a better solution.Does this PR introduce any user-facing change?
No
How was this patch tested?
Pass Github Actions
Was this patch authored or co-authored using generative AI tooling?
No