Skip to content

Commit

Permalink
chore: make MetadataCacheFactory::writer_props return a Result
Browse files Browse the repository at this point in the history
  • Loading branch information
srh authored Sep 24, 2024
1 parent faf7acb commit 7e93511
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions datafusion/src/physical_plan/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,11 @@ pub trait MetadataCacheFactory: Sync + Send {
time_to_idle: Duration,
) -> Arc<dyn ParquetMetadataCache>;
/// Modifies and builds writer properties.
fn build_writer_props(&self, builder: WriterPropertiesBuilder) -> WriterProperties {
builder.build()
fn build_writer_props(
&self,
builder: WriterPropertiesBuilder,
) -> Result<WriterProperties> {
Ok(builder.build())
}
}

Expand Down

0 comments on commit 7e93511

Please sign in to comment.