You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Make conversion from FileDecryptionProperties to ConfigFileDecryptionProperties fallible (#21603)
## Which issue does this PR close?
- Closes#21602.
## Rationale for this change
Fail quickly with a helpful error if we're unable to represent a
`FileDecryptionProperties` instance as `ConfigFileDecryptionProperties`
## What changes are included in this PR?
* Change the implementation of `From<&Arc<FileDecryptionProperties>>`
for `ConfigFileDecryptionProperties` to `TryFrom`.
* Fail the conversion if we can't get the footer key from the
`FileDecryptionProperties` with empty metadata
## Are these changes tested?
Yes I've added a new unit test.
I also tested this with a branch of delta-rs that uses Datafusion with
Parquet encryption, and this required only minor changes to tests and
examples:
corwinjoy/delta-rs@file_format_options_squashed...adamreeve:delta-rs:test-datafusion-change
## Are there any user-facing changes?
Yes, this is a breaking API change.
---------
Co-authored-by: Kumar Ujjawal <ujjawalpathak6@gmail.com>
Co-authored-by: Nuno Faria <nunofpfaria@gmail.com>
0 commit comments