Skip to content

Conversation

@xanderbailey
Copy link

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

  • Closes #.

What changes are included in this PR?

Are these changes tested?

@xanderbailey xanderbailey marked this pull request as draft January 17, 2026 21:28
.with_preload_page_index(should_load_page_index);

// Check if file is encrypted but encryption feature is not enabled
#[cfg(not(feature = "encryption"))]
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant