Skip to content

Commit

Permalink
Implementing feedback from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
edmondop committed Aug 1, 2024
1 parent ec95a77 commit 5af4b62
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 3 additions & 1 deletion datafusion/optimizer/src/scalar_subquery_to_join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,10 @@ mod tests {
use crate::test::*;

use arrow::datatypes::DataType;
use datafusion_expr::test::function_stub::{max, min, sum};
use datafusion_expr::test::function_stub::sum;

use datafusion_expr::{col, lit, out_ref_col, scalar_subquery, Between};
use datafusion_functions_aggregate::min_max::{max, min};

/// Test multiple correlated subqueries
#[test]
Expand Down
12 changes: 7 additions & 5 deletions datafusion/proto/tests/cases/roundtrip_physical_plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -909,11 +909,13 @@ fn roundtrip_scalar_udf_extension_codec() -> Result<()> {
)),
input,
)?);
let aggr_expr = AggregateExprBuilder::new(max_udaf(),
vec![udf_expr.clone() as Arc<dyn PhysicalExpr>])
.schema(schema.clone())
.name("max")
.build()?;
let aggr_expr = AggregateExprBuilder::new(
max_udaf(),
vec![udf_expr.clone() as Arc<dyn PhysicalExpr>],
)
.schema(schema.clone())
.name("max")
.build()?;

let window = Arc::new(WindowAggExec::try_new(
vec![Arc::new(PlainAggregateWindowExpr::new(
Expand Down

0 comments on commit 5af4b62

Please sign in to comment.