-
Notifications
You must be signed in to change notification settings - Fork 0
Change connection_config from a string:string map to a map from Parqu… #56
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -100,7 +100,7 @@ cdef extern from "parquet/encryption/crypto_factory.h" \ | |
| int32_t data_key_length_bits | ||
| unordered_map[c_string, CColumnEncryptionAttributes] per_column_encryption | ||
| c_string app_context | ||
| unordered_map[c_string, c_string] connection_config | ||
| unordered_map[ParquetCipher, unordered_map[c_string, c_string]] connection_config | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any chance of these look ups failing? Seems to follow the pattern of the previous version, but just checking.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In this specific line no lookup is happening, but in general, no. If there is an incorrect value sent in as ParquetCipher the cipher_to_name and cipher_from_name methods will catch this and raise ValueErrors accordingly. |
||
|
|
||
| cdef cppclass CDecryptionConfiguration\ | ||
| " parquet::encryption::DecryptionConfiguration": | ||
|
|
||
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.
Why is this clear() needed? Are we reusing an auxiliary data struct? Let's add a comment.
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.
Yes, clearing from the values of the previous iteration. Comment added.