Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaxin Gao committed Mar 19, 2024
1 parent 9c38d21 commit 5a4b4d5
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions core/src/execution/datafusion/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ use datafusion::{
execution_props::ExecutionProps,
expressions::{
in_list, BinaryExpr, BitAnd, BitOr, BitXor, CaseExpr, CastExpr, Column, Count,
Covariance, CovariancePop, FirstValue, InListExpr, IsNotNullExpr, IsNullExpr, LastValue,
Literal as DataFusionLiteral, Max, Min, NegativeExpr, NotExpr, Sum, UnKnownColumn,
Covariance, CovariancePop, FirstValue, InListExpr, IsNotNullExpr, IsNullExpr,
LastValue, Literal as DataFusionLiteral, Max, Min, NegativeExpr, NotExpr, Sum,
UnKnownColumn,
},
functions::create_physical_expr,
AggregateExpr, PhysicalExpr, PhysicalSortExpr, ScalarFunctionExpr,
Expand Down Expand Up @@ -1051,13 +1052,23 @@ impl PhysicalPlanner {
let child1 = self.create_expr(expr.child1.as_ref().unwrap(), schema.clone())?;
let child2 = self.create_expr(expr.child2.as_ref().unwrap(), schema.clone())?;
let datatype = to_arrow_datatype(expr.datatype.as_ref().unwrap());
Ok(Arc::new(Covariance::new(child1, child2, "covariance", datatype)))
Ok(Arc::new(Covariance::new(
child1,
child2,
"covariance",
datatype,
)))
}
AggExprStruct::CovPopulation(expr) => {
let child1 = self.create_expr(expr.child1.as_ref().unwrap(), schema.clone())?;
let child2 = self.create_expr(expr.child2.as_ref().unwrap(), schema.clone())?;
let datatype = to_arrow_datatype(expr.datatype.as_ref().unwrap());
Ok(Arc::new(CovariancePop::new(child1, child2, "covariance_pop", datatype)))
Ok(Arc::new(CovariancePop::new(
child1,
child2,
"covariance_pop",
datatype,
)))
}
}
}
Expand Down

0 comments on commit 5a4b4d5

Please sign in to comment.