Skip to content

Conversation

@rdblue
Copy link
Contributor

@rdblue rdblue commented Dec 11, 2023

This is an update to #6884 with a few final fixes to the StandardEncryptionManager and related classes. This is almost entirely @ggershinsky's work, I'm just submitting this to unblock merging since he's OOO right now.


if (FileFormat.fromString(fileFormat) != FileFormat.PARQUET) {
throw new UnsupportedOperationException(
"Iceberg encryption currently supports only parquet format for data files");
Copy link
Member

Choose a reason for hiding this comment

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

nit: Maybe, "Iceberg encryption for data files currently only supports parquet, default file format of $format is set as $DEFAULT_FILE_FORMAT""

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're going to remove this anyway in the next PR since it doesn't actually prevent writing Avro or ORC files with encryption turned on.

Copy link
Member

@RussellSpitzer RussellSpitzer left a comment

Choose a reason for hiding this comment

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

Looks good to me, tiny nit on the error message for invalid default data file format.

@rdblue rdblue merged commit 36ecab4 into apache:main Dec 12, 2023
@rdblue
Copy link
Contributor Author

rdblue commented Dec 12, 2023

Thanks for the final review, @RussellSpitzer!

@rdblue rdblue mentioned this pull request Dec 12, 2023
lisirrx pushed a commit to lisirrx/iceberg that referenced this pull request Jan 4, 2024
Co-Authored-By: Jian Tang <[email protected]>
Co-authored-by: Gidon Gershinsky <[email protected]>
geruh pushed a commit to geruh/iceberg that referenced this pull request Jan 26, 2024
Co-Authored-By: Jian Tang <[email protected]>
Co-authored-by: Gidon Gershinsky <[email protected]>
devangjhabakh pushed a commit to cdouglas/iceberg that referenced this pull request Apr 22, 2024
Co-Authored-By: Jian Tang <[email protected]>
Co-authored-by: Gidon Gershinsky <[email protected]>
@stevenzwu stevenzwu moved this from In progress to Done in [Priority 2] Spec v3: Encryption Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants