adamreeve opened a new pull request, #7477:
URL: https://github.com/apache/arrow-rs/pull/7477

   # Which issue does this PR close?
   
   Closes #7476
   
   # Rationale for this change
    
   Tidies up code to make it more maintainable and also makes invalid uses of 
the builder (ie. setting column keys directly when using a key retriever) cause 
a compilation error rather than a runtime error.
   
   https://github.com/apache/arrow-rs/pull/7286#discussion_r2010618162 
suggested changing `DecryptionPropertiesBuilder` to be an enum, but that would 
require changing `DecryptionPropertiesBuilder::with_column_key` to return a 
`Result`, and I figured it would be better to keep the API mostly source 
compatible and make it a compilation error to call this when a key retriever is 
used rather than a runtime error.
   
   # What changes are included in this PR?
   
   Refactors how `FileDecryptionProperties` are built and adds a new 
`DecryptionPropertiesBuilderWithRetriever` type.
   
   # Are there any user-facing changes?
   
   Yes, this is a breaking change to the Parquet encryption API, but should be 
source compatible unless users were directly calling 
`DecryptionPropertiesBuilder::new_with_key_retriever` rather than 
`FileDecryptionProperties::with_key_retriever`. Parquet encryption is also a 
recently added experimental feature so I don't imagine this will affect many 
users.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to