Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgazelka committed Sep 25, 2024
1 parent 33c6b87 commit 90e377e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
5 changes: 1 addition & 4 deletions src/daft-core/src/array/ops/concat_agg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,7 @@ impl DaftConcatAggable for DataArray<Utf8Type> {
)))
};

Ok(Self::from((
self.field.name.as_ref(),
concat_per_group,
)))
Ok(Self::from((self.field.name.as_ref(), concat_per_group)))
}
}

Expand Down
16 changes: 4 additions & 12 deletions src/daft-sql/src/modules/partitioning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,10 @@ impl SQLFunction for PartitioningExpr {
planner: &crate::planner::SQLPlanner,
) -> crate::error::SQLPlannerResult<daft_dsl::ExprRef> {
match self {
Self::Years => {
partitioning_helper(args, planner, "years", partitioning::years)
}
Self::Months => {
partitioning_helper(args, planner, "months", partitioning::months)
}
Self::Days => {
partitioning_helper(args, planner, "days", partitioning::days)
}
Self::Hours => {
partitioning_helper(args, planner, "hours", partitioning::hours)
}
Self::Years => partitioning_helper(args, planner, "years", partitioning::years),
Self::Months => partitioning_helper(args, planner, "months", partitioning::months),
Self::Days => partitioning_helper(args, planner, "days", partitioning::days),
Self::Hours => partitioning_helper(args, planner, "hours", partitioning::hours),
Self::IcebergBucket(_) => {
ensure!(args.len() == 2, "iceberg_bucket takes exactly 2 arguments");
let input = planner.plan_function_arg(&args[0])?;
Expand Down

0 comments on commit 90e377e

Please sign in to comment.