Skip to content

Commit

Permalink
silence warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
etseidl committed Sep 20, 2024
1 parent e8b9dad commit 1497883
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions parquet/src/arrow/array_reader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,16 @@ pub use struct_array::StructArrayReader;

/// Array reader reads parquet data into arrow array.
pub trait ArrayReader: Send {
// TODO: this function is never used, and the trait is not public. Perhaps this should be
// removed.
#[allow(dead_code)]
fn as_any(&self) -> &dyn Any;

/// Returns the arrow type of this array reader.
fn get_data_type(&self) -> &ArrowType;

/// Reads at most `batch_size` records into an arrow array and return it.
#[cfg(any(feature = "experimental", test))]
fn next_batch(&mut self, batch_size: usize) -> Result<ArrayRef> {
self.read_records(batch_size)?;
self.consume_batch()
Expand Down

0 comments on commit 1497883

Please sign in to comment.