Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
qinix committed Mar 25, 2024
1 parent 6063e8f commit aad9048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ impl DataWriter {
pub fn update_schema(&mut self, table: &DeltaTable) -> Result<bool, Box<DataWriterError>> {
let metadata = table.metadata().unwrap();
let schema: ArrowSchema =
<ArrowSchema as TryFrom<&Schema>>::try_from(&table.schema().unwrap())?;
<ArrowSchema as TryFrom<&Schema>>::try_from(table.schema().unwrap())?;

let schema_updated = self.arrow_schema_ref.as_ref() != &schema
|| self.partition_columns != metadata.partition_columns;
Expand Down

0 comments on commit aad9048

Please sign in to comment.