Skip to content
Merged
7 changes: 4 additions & 3 deletions parquet/src/arrow/arrow_reader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,12 @@ pub const DEFAULT_BATCH_SIZE: usize = 1024;
pub struct ArrowReaderBuilder<T> {
/// The "input" to read parquet data from.
///
/// Note in the case of the [`ParquetPushDecoderBuilder`], there
/// is no underlying input, which is indicated by a type parameter of [`NoInput`]
/// Note in the case of the [`ParquetPushDecoderBuilder`] there is no
/// underlying reader; the input is instead [`PushDecoderInput`], the buffer that
/// caller-pushed bytes accumulate in.
///
/// [`ParquetPushDecoderBuilder`]: crate::arrow::push_decoder::ParquetPushDecoderBuilder
/// [`NoInput`]: crate::arrow::push_decoder::NoInput
/// [`PushDecoderInput`]: crate::arrow::push_decoder::PushDecoderInput
pub(crate) input: T,

pub(crate) metadata: Arc<ParquetMetaData>,
Expand Down
4 changes: 2 additions & 2 deletions parquet/src/arrow/async_reader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub use metadata::*;
mod store;

use crate::DecodeResult;
use crate::arrow::push_decoder::{NoInput, ParquetPushDecoder, ParquetPushDecoderBuilder};
use crate::arrow::push_decoder::{ParquetPushDecoder, ParquetPushDecoderBuilder, PushDecoderInput};
#[cfg(feature = "object_store")]
pub use store::*;

Expand Down Expand Up @@ -600,7 +600,7 @@ impl<T: AsyncFileReader + Send + 'static> ParquetRecordBatchStreamBuilder<T> {
let projected_schema = Arc::new(Schema::new(projected_fields));

let decoder = ParquetPushDecoderBuilder {
input: NoInput,
input: PushDecoderInput::default(),
metadata,
schema,
fields,
Expand Down
Loading
Loading