Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Aug 10, 2024
1 parent e2bd6aa commit 0975881
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions vegafusion-runtime/src/expression/compiler/array.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use std::sync::Arc;

use crate::expression::compiler::{compile, config::CompilationConfig};
use datafusion_expr::{expr, Expr, ScalarFunctionDefinition, ScalarUDF};
use datafusion_functions_array::make_array::MakeArray;
use datafusion_expr::Expr;
use datafusion_functions_array::expr_fn::make_array;
use vegafusion_common::datafusion_common::DFSchema;
use vegafusion_core::error::Result;
use vegafusion_core::proto::gen::expression::ArrayExpression;
Expand All @@ -17,9 +15,5 @@ pub fn compile_array(
let phys_expr = compile(el, config, Some(schema))?;
elements.push(phys_expr);
}

Ok(Expr::ScalarFunction(expr::ScalarFunction {
func_def: ScalarFunctionDefinition::UDF(Arc::new(ScalarUDF::from(MakeArray::new()))),
args: elements,
}))
Ok(make_array(elements))
}

0 comments on commit 0975881

Please sign in to comment.