Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove the ORC encryption tests [databricks] #5737

Merged
merged 4 commits into from
Jun 7, 2022

Conversation

razajafri
Copy link
Collaborator

@razajafri razajafri commented Jun 3, 2022

This PR removes the ORC encryption test

There will be a follow-on PR for adding tests

fixes #5733

Signed-off-by: Raza Jafri rjafri@nvidia.com

razajafri added 2 commits June 3, 2022 11:34
Signed-off-by: Raza Jafri <rjafri@nvidia.com>
… 3.1.x

Signed-off-by: Raza Jafri <rjafri@nvidia.com>
@tgravescs tgravescs changed the title Ignore ORC encryption tests when ORC is loaded by old Hadoop library Ignore ORC encryption tests when ORC is loaded by old Hadoop library [databricks] Jun 3, 2022
@tgravescs
Copy link
Collaborator

please put a description of changes made and why

@razajafri
Copy link
Collaborator Author

build

frame =>
// ORC encryption is only allowed in 3.2+
val isValidTestForSparkVersion = SparkShimImpl.getSparkShimVersion match {
case SparkShimVersion(major, minor, _) => major == 3 && minor != 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

we don't need these checks if this is in a 320+ directory right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, we don't. I am being defensive here in case someone moves things around. If this is an issue, I can remove them

Signed-off-by: Raza Jafri <rjafri@nvidia.com>
@HaoYang670
Copy link
Collaborator

Build failure is due to #5744

@sameerz
Copy link
Collaborator

sameerz commented Jun 5, 2022

build

withCpuSparkSession(session => {
val conf = session.sessionState.newHadoopConf()
val provider = HadoopShimsFactory.get.getHadoopKeyProvider(conf, new Random)
assume(!provider.getKeyNames.isEmpty,
Copy link
Collaborator

Choose a reason for hiding this comment

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

this isn't testing anything the way its written, we need a different way to test

@sameerz sameerz added the bug Something isn't working label Jun 6, 2022
Signed-off-by: Raza Jafri <rjafri@nvidia.com>
@razajafri razajafri changed the title Ignore ORC encryption tests when ORC is loaded by old Hadoop library [databricks] Remove the redundant ORC encryption tests [databricks] Jun 6, 2022
@tgravescs tgravescs changed the title Remove the redundant ORC encryption tests [databricks] Remove the ORC encryption tests [databricks] Jun 6, 2022
Copy link
Collaborator

@tgravescs tgravescs left a comment

Choose a reason for hiding this comment

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

we need another issue filed to add a working test back

@razajafri
Copy link
Collaborator Author

we need another issue filed to add a working test back

#5722

@razajafri
Copy link
Collaborator Author

build

@sameerz sameerz merged commit b7649ec into NVIDIA:branch-22.06 Jun 7, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Integration test test_orc_write_encryption_fallback fail
4 participants