Skip to content

Commit afe6658

Browse files
corwinjoyrok
authored andcommitted
Update paths. Add notes on where encryption is needed.
1 parent 8b72f3a commit afe6658

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@ arrow-row = { version = "54.0.0", path = "./arrow-row" }
9191
arrow-schema = { version = "54.0.0", path = "./arrow-schema" }
9292
arrow-select = { version = "54.0.0", path = "./arrow-select" }
9393
arrow-string = { version = "54.0.0", path = "./arrow-string" }
94-
parquet = { version = "54.0.0", path = "./parquet", default-features = false }
94+
parquet = { version = "54.0.0", path = "./parquet", default-features = true }
9595

9696
chrono = { version = "0.4.34", default-features = false, features = ["clock"] }

parquet/src/arrow/async_reader/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ impl ArrowReaderMetadata {
198198
/// If `options` has [`ArrowReaderOptions::with_page_index`] true, but
199199
/// `Self::metadata` is missing the page index, this function will attempt
200200
/// to load the page index by making an object store request.
201+
202+
// load_async is what gets called by datafusion to read the metadata
203+
// Rok, need your help here to add encryption.
201204
pub async fn load_async<T: AsyncFileReader>(
202205
input: &mut T,
203206
options: ArrowReaderOptions,

parquet/src/file/properties.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
//! Configuration via [`WriterProperties`] and [`ReaderProperties`]
1919
use crate::basic::{Compression, Encoding};
2020
use crate::compression::{CodecOptions, CodecOptionsBuilder};
21-
use crate::encryption::encryption::FileEncryptionProperties;
2221
use crate::file::metadata::KeyValue;
2322
use crate::format::SortingColumn;
2423
use crate::schema::types::ColumnPath;
2524
use std::str::FromStr;
2625
use std::{collections::HashMap, sync::Arc};
26+
use crate::encryption::encryption::FileEncryptionProperties;
2727

2828
/// Default value for [`WriterProperties::data_page_size_limit`]
2929
pub const DEFAULT_PAGE_SIZE: usize = 1024 * 1024;

0 commit comments

Comments
 (0)