Skip to content

Commit 34e9f54

Browse files
cargo fmt
1 parent 424a3fa commit 34e9f54

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

src/catalog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use crate::errors::DataFusionError;
2525
use crate::utils::wait_for_future;
2626
use datafusion::{
2727
arrow::pyarrow::ToPyArrow,
28-
catalog::{SchemaProvider, CatalogProvider},
28+
catalog::{CatalogProvider, SchemaProvider},
2929
datasource::{TableProvider, TableType},
3030
};
3131

src/common/data_type.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,6 @@ pub enum NullTreatment {
776776
RESPECT_NULLS,
777777
}
778778

779-
780779
impl From<NullTreatment> for DFNullTreatment {
781780
fn from(null_treatment: NullTreatment) -> DFNullTreatment {
782781
match null_treatment {

src/context.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ use datafusion::datasource::listing::{
5050
};
5151
use datafusion::datasource::MemTable;
5252
use datafusion::datasource::TableProvider;
53-
use datafusion::execution::context::{
54-
SQLOptions, SessionConfig, SessionContext, TaskContext,
55-
};
53+
use datafusion::execution::context::{SQLOptions, SessionConfig, SessionContext, TaskContext};
5654
use datafusion::execution::disk_manager::DiskManagerConfig;
5755
use datafusion::execution::memory_pool::{FairSpillPool, GreedyMemoryPool, UnboundedMemoryPool};
5856
use datafusion::execution::runtime_env::{RuntimeConfig, RuntimeEnv};

src/expr/aggregate.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ impl PyAggregate {
126126
match expr {
127127
// TODO: This Alias logic seems to be returning some strange results that we should investigate
128128
Expr::Alias(Alias { expr, .. }) => self._aggregation_arguments(expr.as_ref()),
129-
Expr::AggregateFunction(AggregateFunction {
130-
func: _, args, ..
131-
}) => Ok(args.iter().map(|e| PyExpr::from(e.clone())).collect()),
129+
Expr::AggregateFunction(AggregateFunction { func: _, args, .. }) => {
130+
Ok(args.iter().map(|e| PyExpr::from(e.clone())).collect())
131+
}
132132
_ => Err(py_type_err(
133133
"Encountered a non Aggregate type in aggregation_arguments",
134134
)),
@@ -138,9 +138,7 @@ impl PyAggregate {
138138
fn _agg_func_name(expr: &Expr) -> PyResult<String> {
139139
match expr {
140140
Expr::Alias(Alias { expr, .. }) => Self::_agg_func_name(expr.as_ref()),
141-
Expr::AggregateFunction(AggregateFunction { func, .. }) => {
142-
Ok(func.name().to_owned())
143-
}
141+
Expr::AggregateFunction(AggregateFunction { func, .. }) => Ok(func.name().to_owned()),
144142
_ => Err(py_type_err(
145143
"Encountered a non Aggregate type in agg_func_name",
146144
)),

0 commit comments

Comments
 (0)