Skip to content

Commit

Permalink
test: update test helper session_config_from_writer_props, to not add…
Browse files Browse the repository at this point in the history
… column configuration when none exists
  • Loading branch information
wiedld committed Jul 15, 2024
1 parent e9f1427 commit e693d43
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions datafusion/common/src/file_options/parquet_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,12 @@ mod tests {

let global_options_defaults = ParquetOptions::default();

let column_specific_options = if configured_col_props.eq(&default_col_props) {
HashMap::default()
} else {
HashMap::from([(COL_NAME.into(), configured_col_props)])
};

TableParquetOptions {
global: ParquetOptions {
// global options
Expand Down Expand Up @@ -443,10 +449,7 @@ mod tests {
.maximum_buffered_record_batches_per_stream,
bloom_filter_on_read: global_options_defaults.bloom_filter_on_read,
},
column_specific_options: HashMap::from([(
COL_NAME.into(),
configured_col_props,
)]),
column_specific_options,
key_value_metadata,
}
}
Expand Down

0 comments on commit e693d43

Please sign in to comment.