Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
Signed-off-by: jayzhan211 <[email protected]>
  • Loading branch information
jayzhan211 committed May 18, 2024
1 parent 800f006 commit dee9417
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions datafusion-examples/examples/udaf_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ use datafusion_expr::col;

#[tokio::main]
async fn main() -> Result<()> {
let first_value_builder = first_value_builder(col("a")).order_by(vec![col("b")]).build();
let first_value_builder = first_value_builder(col("a"))
.order_by(vec![col("b")])
.build();
let first_value_fn = first_value(col("a"), Some(vec![col("b")]));
assert_eq!(first_value_builder, first_value_fn);
Ok(())
}
}
2 changes: 1 addition & 1 deletion datafusion/functions-aggregate/src/expr_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use datafusion_expr::{expr::AggregateFunction, Expr};
use sqlparser::ast::NullTreatment;

/// Builder for creating an aggregate function expression
///
///
/// Has the same arguments from [AggregateFunction]
pub struct ExprBuilder {
udf: Arc<crate::AggregateUDF>,
Expand Down

0 comments on commit dee9417

Please sign in to comment.