Skip to content

Commit 359a380

Browse files
committed
build(deps): update versions
1 parent ebe00cf commit 359a380

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ paste = "1.0"
3131

3232
[dependencies.datafusion]
3333
default-features = false
34-
version = "48.0"
34+
version = "49.0"
3535

3636
[dev-dependencies]
37-
criterion = "0.6"
38-
rand = "0.8"
39-
tokio = "1.46"
37+
criterion = "0.7"
38+
rand = "0.9"
39+
tokio = "1.47"
4040

4141
[dev-dependencies.arrow]
4242
default-features = false
4343
features = ["test_utils"]
44-
version = "55.0"
44+
version = "56.0"
4545

4646
[dev-dependencies.insta]
4747
features = ["yaml"]

src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ macro_rules! make_udaf_expr {
2828
vec![$($arg),*],
2929
false,
3030
None,
31-
None,
31+
vec![],
3232
None,
3333
))
3434
}

src/max_min_by.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl logical_expr::AggregateUDFImpl for MaxByFunction {
8080
fn simplify(&self) -> Option<logical_expr::function::AggregateFunctionSimplification> {
8181
let simplify = |mut aggr_func: logical_expr::expr::AggregateFunction,
8282
_: &dyn logical_expr::simplify::SimplifyInfo| {
83-
let mut order_by = aggr_func.params.order_by.unwrap_or_default();
83+
let mut order_by = aggr_func.params.order_by;
8484
let (second_arg, first_arg) = (aggr_func.params.args.remove(1), aggr_func.params.args.remove(0));
8585
let sort = logical_expr::expr::Sort::new(second_arg, true, false);
8686
order_by.push(sort);
@@ -89,7 +89,7 @@ impl logical_expr::AggregateUDFImpl for MaxByFunction {
8989
vec![first_arg],
9090
aggr_func.params.distinct,
9191
aggr_func.params.filter,
92-
Some(order_by),
92+
order_by,
9393
aggr_func.params.null_treatment,
9494
));
9595
Ok(func)
@@ -165,7 +165,7 @@ impl logical_expr::AggregateUDFImpl for MinByFunction {
165165
fn simplify(&self) -> Option<logical_expr::function::AggregateFunctionSimplification> {
166166
let simplify = |mut aggr_func: logical_expr::expr::AggregateFunction,
167167
_: &dyn logical_expr::simplify::SimplifyInfo| {
168-
let mut order_by = aggr_func.params.order_by.unwrap_or_default();
168+
let mut order_by = aggr_func.params.order_by;
169169
let (second_arg, first_arg) = (aggr_func.params.args.remove(1), aggr_func.params.args.remove(0));
170170

171171
let sort = logical_expr::expr::Sort::new(second_arg, false, false);
@@ -175,7 +175,7 @@ impl logical_expr::AggregateUDFImpl for MinByFunction {
175175
vec![first_arg],
176176
aggr_func.params.distinct,
177177
aggr_func.params.filter,
178-
Some(order_by),
178+
order_by,
179179
aggr_func.params.null_treatment,
180180
));
181181
Ok(func)

0 commit comments

Comments
 (0)