Skip to content

Commit

Permalink
add explainPlan info and fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaxin Gao committed Apr 24, 2024
1 parent 9c1c808 commit 862d20a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/src/execution/datafusion/planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1248,11 +1248,11 @@ impl PhysicalPlanner {
expr.null_on_divide_by_zero,
))),
1 => Ok(Arc::new(Variance::new(
child,
"variance_pop",
datatype,
StatsType::Population,
expr.null_on_divide_by_zero,
child,
"variance_pop",
datatype,
StatsType::Population,
expr.null_on_divide_by_zero,
))),
stats_type => Err(ExecutionError::GeneralError(format!(
"Unknown StatisticsType {:?} for Variance",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ object QueryPlanSerde extends Logging with ShimQueryPlanSerde {
.setVariance(varBuilder)
.build())
} else {
withInfo(aggExpr, child)
None
}
case variancePop @ VariancePop(child, nullOnDivideByZero) =>
Expand All @@ -500,6 +501,7 @@ object QueryPlanSerde extends Logging with ShimQueryPlanSerde {
.setVariance(varBuilder)
.build())
} else {
withInfo(aggExpr, child)
None
}
case fn =>
Expand Down

0 comments on commit 862d20a

Please sign in to comment.