-
Notifications
You must be signed in to change notification settings - Fork 392
DRAFT/Experiment to see how encrypted reads might look #2042
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
base: main
Are you sure you want to change the base?
Conversation
| .with_preload_page_index(should_load_page_index); | ||
|
|
||
| // Check if file is encrypted but encryption feature is not enabled | ||
| #[cfg(not(feature = "encryption"))] |
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.
Not sure if we want this or not...
| let result = std::thread::scope(|s| { | ||
| s.spawn(|| { | ||
| handle.block_on(async move { | ||
| encryption_manager.prepare_decryption(&key_metadata).await |
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.
prepare_decryption is async so we need the tokio Handle here to call the async function in a sync context...
| let result = std::thread::scope(|s| { | ||
| s.spawn(|| { | ||
| handle.block_on(async move { | ||
| encryption_manager.prepare_decryption(&key_metadata).await |
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.
prepare_decryption is async so we need the tokio Handle here to call the async function in a sync context...
Which issue does this PR close?
I just wanted to experiment to see how it might look to read encrypted manifests, manifest lists and parquet.
Working towards #2034
What changes are included in this PR?
Are these changes tested?