-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-34029][SQL][TESTS] Add OrcEncryptionSuite and FakeKeyProvider #31065
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Could you review this, @HyukjinKwon and @maropu ? |
sql/core/src/test/java/test/org/apache/spark/sql/execution/datasources/orc/FakeKeyProvider.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments and it looks okay otherwise (if the tests pass).
sql/core/src/test/java/test/org/apache/spark/sql/execution/datasources/orc/FakeKeyProvider.java
Outdated
Show resolved
Hide resolved
sql/core/src/test/java/test/org/apache/spark/sql/execution/datasources/orc/FakeKeyProvider.java
Outdated
Show resolved
Hide resolved
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/orc/OrcEncryptionSuite.scala
Outdated
Show resolved
Hide resolved
|
Although only the last commit is the change, the PR is rebased to the master. Sorry about that. |
|
This is a test-only patch and tested like the following. |
|
Thank you for review and approval, @maropu ! |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
Test build #133736 has finished for PR 31065 at commit
|
|
I'm looking at the Jenkins issue. It seems to fail due to environmental issue. |
|
Test build #133743 has finished for PR 31065 at commit
|
|
Retest this please |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
Test build #133752 has finished for PR 31065 at commit
|
|
The current Jenkins passed Java/Scala/Python UTs already. Merged to master. |
|
Test build #133754 has finished for PR 31065 at commit
|
|
Jenkins passed, but GitHub Action seems to hit another issue. I'll take a look. |
|
+1 LGTM! |
|
@dongjoon-hyun seems like it's still flaky (?). Can you take a quick look for https://github.com/apache/spark/pull/31068/checks?check_run_id=1660627329? I saw this in a PR not related to ORC change. |
|
Yes, I'm working on here. |
|
The Hadoop class is not loaded correctly in The failure happens when we build first and run test separately. This is the similar one we hit before. I'm thinking about moving the test from |
|
Thanks for working on it! |
|
Since the test suite was not isolated correctly, this is reverted via 194edc8 |
|
According to the current observation, I'll make a new PR and make it pass |
### What changes were proposed in this pull request? This is a retry of #31065 . Last time, the newly add test cases passed in Jenkins and individually, but it's reverted because they fail when `GitHub Action` runs with `SERIAL_SBT_TESTS=1`. In this PR, `SecurityTest` tag is used to isolate `KeyProvider`. This PR aims to add a basis for columnar encryption test framework by add `OrcEncryptionSuite` and `FakeKeyProvider`. Please note that we will improve more in both Apache Spark and Apache ORC in Apache Spark 3.2.0 timeframe. ### Why are the changes needed? Apache ORC 1.6 supports columnar encryption. ### Does this PR introduce _any_ user-facing change? No. This is for a test case. ### How was this patch tested? Pass the newly added test suite. Closes #31603 from dongjoon-hyun/SPARK-34486-RETRY. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
What changes were proposed in this pull request?
This PR aims to add a basis for columnar encryption test framework by add
OrcEncryptionSuiteandFakeKeyProvider.Please note that we will improve more in both Apache Spark and Apache ORC in Apache Spark 3.2.0 timeframe.
Why are the changes needed?
Apache ORC 1.6 supports columnar encryption.
Does this PR introduce any user-facing change?
No. This is for a test case.
How was this patch tested?
Pass the newly added test suite.