Skip to content

Commit

Permalink
chore: Update for API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Dec 6, 2024
1 parent 0ac1f14 commit 44bb39d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions datafusion/core/src/datasource/file_format/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ fn spawn_column_parallel_row_group_writer(
max_buffer_size: usize,
pool: &Arc<dyn MemoryPool>,
) -> Result<(Vec<ColumnWriterTask>, Vec<ColSender>)> {
let schema_desc = arrow_to_parquet_schema(&schema)?;
let schema_desc = arrow_to_parquet_schema(&schema, false)?;
let col_writers = get_column_writers(&schema_desc, &parquet_props, &schema)?;
let num_columns = col_writers.len();

Expand Down Expand Up @@ -1137,7 +1137,7 @@ async fn concatenate_parallel_row_groups(
let mut file_reservation =
MemoryConsumer::new("ParquetSink(SerializedFileWriter)").register(&pool);

let schema_desc = arrow_to_parquet_schema(schema.as_ref())?;
let schema_desc = arrow_to_parquet_schema(schema.as_ref(), false)?;
let mut parquet_writer = SerializedFileWriter::new(
merged_buff.clone(),
schema_desc.root_schema_ptr(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ mod tests {
Field::new("c1", DataType::Int32, false),
Field::new("c2", DataType::Boolean, false),
]));
let schema_descr = arrow_to_parquet_schema(&schema).unwrap();
let schema_descr = arrow_to_parquet_schema(&schema, false).unwrap();
let expr = col("c1").gt(lit(15)).and(col("c2").is_null());
let expr = logical2physical(&expr, &schema);
let pruning_predicate = PruningPredicate::try_new(expr, schema.clone()).unwrap();
Expand Down Expand Up @@ -748,7 +748,7 @@ mod tests {
Field::new("c1", DataType::Int32, false),
Field::new("c2", DataType::Boolean, false),
]));
let schema_descr = arrow_to_parquet_schema(&schema).unwrap();
let schema_descr = arrow_to_parquet_schema(&schema, false).unwrap();
let expr = col("c1")
.gt(lit(15))
.and(col("c2").eq(lit(ScalarValue::Boolean(None))));
Expand Down

0 comments on commit 44bb39d

Please sign in to comment.