Skip to content

Commit

Permalink
auto fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgazelka committed Oct 1, 2024
1 parent 44f3fdc commit 7f15901
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
10 changes: 5 additions & 5 deletions src/common/file-formats/src/file_format_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ impl FileFormatConfig {
#[must_use]
pub fn var_name(&self) -> &'static str {
match self {
FileFormatConfig::Parquet(_) => "Parquet",
FileFormatConfig::Csv(_) => "Csv",
FileFormatConfig::Json(_) => "Json",
Self::Parquet(_) => "Parquet",
Self::Csv(_) => "Csv",
Self::Json(_) => "Json",
#[cfg(feature = "python")]
FileFormatConfig::Database(_) => "Database",
Self::Database(_) => "Database",
#[cfg(feature = "python")]
FileFormatConfig::PythonFunction => "PythonFunction",
Self::PythonFunction => "PythonFunction",
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/daft-core/src/array/growable/fixed_size_list_growable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl<'a> Growable for FixedSizeListGrowable<'a> {
);

if let Some(growable_validity) = &mut self.growable_validity {
growable_validity.extend(index, start, len)
growable_validity.extend(index, start, len);
}
}

Expand All @@ -72,7 +72,7 @@ impl<'a> Growable for FixedSizeListGrowable<'a> {
.add_nulls(additional * self.element_fixed_len);

if let Some(growable_validity) = &mut self.growable_validity {
growable_validity.add_nulls(additional)
growable_validity.add_nulls(additional);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/daft-core/src/array/growable/list_growable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl<'a> Growable for ListGrowable<'a> {
);

if let Some(growable_validity) = &mut self.growable_validity {
growable_validity.extend(index, start, len)
growable_validity.extend(index, start, len);
}

self.growable_offsets
Expand All @@ -82,7 +82,7 @@ impl<'a> Growable for ListGrowable<'a> {

fn add_nulls(&mut self, additional: usize) {
if let Some(growable_validity) = &mut self.growable_validity {
growable_validity.add_nulls(additional)
growable_validity.add_nulls(additional);
}
self.growable_offsets.extend_constant(additional);
}
Expand Down
4 changes: 2 additions & 2 deletions src/daft-core/src/array/growable/struct_growable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl<'a> Growable for StructGrowable<'a> {
}

if let Some(growable_validity) = &mut self.growable_validity {
growable_validity.extend(index, start, len)
growable_validity.extend(index, start, len);
}
}

Expand All @@ -78,7 +78,7 @@ impl<'a> Growable for StructGrowable<'a> {
}

if let Some(growable_validity) = &mut self.growable_validity {
growable_validity.add_nulls(additional)
growable_validity.add_nulls(additional);
}
}

Expand Down
5 changes: 1 addition & 4 deletions src/daft-scheduler/src/adaptive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ impl AdaptivePhysicalPlanScheduler {
None, // TODO(sammy) thread through clustering spec to Python
);

self.planner.update(MaterializedResults {
in_memory_info,
source_id,
})?;
self.planner.update(MaterializedResults { source_id, in_memory_info })?;
Ok(())
})
}
Expand Down

0 comments on commit 7f15901

Please sign in to comment.