[
https://issues.apache.org/jira/browse/PARQUET-1227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16459491#comment-16459491
]
ASF GitHub Bot commented on PARQUET-1227:
-----------------------------------------
ggershinsky closed pull request #84: PARQUET-1227: Thrift structures for
Parquet modular encryption
URL: https://github.com/apache/parquet-format/pull/84
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/src/main/thrift/parquet.thrift b/src/main/thrift/parquet.thrift
index f3aac258..b13dfcbe 100644
--- a/src/main/thrift/parquet.thrift
+++ b/src/main/thrift/parquet.thrift
@@ -876,3 +876,36 @@ struct FileMetaData {
7: optional list<ColumnOrder> column_orders;
}
+
+struct ColumnCryptoMetaData {
+ /** Path in schema **/
+ 1: required list<string> path_in_schema
+
+ /** Encrypted or plaintext **/
+ 2: required bool encrypted
+}
+
+
+struct FileCryptoMetaData {
+ /** Encryption algorithm ID **/
+ 1: required i32 algorithm_id
+
+ /** Metadata of the key used for encryption of footer,
+ * and (possibly) columns **/
+ 2: optional binary key_metadata
+
+ /** Offset of the encrypted Parquet footer **/
+ 3: required i64 footer_offset
+
+ /** If file IVs (nonces) are comprised of a fixed part,
+ * and a variable part (random or counter), keep the fixed
+ * part here **/
+ 4: optional binary iv_prefix
+
+ /** File uniform encryption: true if all columns,
+ * and footer, are encrypted with the same key **/
+ 5: required bool uniform_encryption
+
+ /** Written only if uniform_encryption is false **/
+ 6: optional list<ColumnCryptoMetaData> column_crypto_meta_data
+}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Thrift crypto metadata structures
> ---------------------------------
>
> Key: PARQUET-1227
> URL: https://issues.apache.org/jira/browse/PARQUET-1227
> Project: Parquet
> Issue Type: Sub-task
> Components: parquet-format
> Reporter: Gidon Gershinsky
> Assignee: Gidon Gershinsky
> Priority: Major
>
> New Thrift structures for Parquet modular encryption
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)