Skip to content
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

[Encryption] REST Integration #5

Draft
wants to merge 16 commits into
base: hive-fixes-and-spark-rest-merge
Choose a base branch
from

Conversation

smaheshwar-pltr
Copy link
Owner

@smaheshwar-pltr smaheshwar-pltr commented Nov 13, 2024

Base is #6. WIP.

@smaheshwar-pltr smaheshwar-pltr changed the base branch from main to hive-fixes-and-spark-rest-merge November 14, 2024 10:59
@smaheshwar-pltr smaheshwar-pltr changed the title [Encryption] Hacky REST Integration [Encryption] Attempt at REST Integration Nov 14, 2024
Comment on lines +70 to 78
{
SparkCatalogConfig.REST.catalogName(),
SparkCatalogConfig.REST.implementation(),
appendCatalogEncryptionProperties(
ImmutableMap.<String, String>builder()
.putAll(SparkCatalogConfig.REST.properties())
.put(CatalogProperties.URI, restCatalog.properties().get(CatalogProperties.URI))
.build())
}
Copy link
Owner Author

Choose a reason for hiding this comment

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

For some reason, three tests run for each test but I've only specified two parameters here.

@smaheshwar-pltr smaheshwar-pltr changed the title [Encryption] Attempt at REST Integration [Encryption] REST Integration Nov 14, 2024
@@ -122,7 +133,33 @@ public void testInsertAndDelete() {
}

@TestTemplate
public void testDirectDataFileRead() {
public void testDirectUnencryptedDataFileRead() {
Copy link
Owner Author

@smaheshwar-pltr smaheshwar-pltr Jan 19, 2025

Choose a reason for hiding this comment

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

TODO: Remove changes to this file. Hive PR's test should suffice. Make ORDER BY change there.


@Disabled("Fails with `java.lang.IllegalStateException: Null key metadata buffer`")
@TestTemplate
public void testCtas() {
Copy link
Owner Author

Choose a reason for hiding this comment

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

Why does this not work?

.collect(Collectors.toList()),
discardChanges ? ImmutableList.of() : ImmutableList.copyOf(changes));

result.setKekCache(kekCache);
Copy link
Owner Author

Choose a reason for hiding this comment

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

Maybe add as a constructor parameter instead of doing this.

@github-actions github-actions bot added the HIVE label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant