diff --git a/src/frontend/src/binder/mod.rs b/src/frontend/src/binder/mod.rs index 855e6c0cda00f..87c21a3843693 100644 --- a/src/frontend/src/binder/mod.rs +++ b/src/frontend/src/binder/mod.rs @@ -909,6 +909,50 @@ mod tests { filter: Condition { conjunctions: [], }, + distinct: false, + order_by: OrderBy { + sort_exprs: [ + OrderByExpr { + expr: InputRef( + InputRef { + index: 0, + data_type: Int32, + }, + ), + order_type: OrderType { + direction: Ascending, + nulls_are: Largest, + }, + }, + ], + }, + direct_args: [ + Literal { + data: Some( + Decimal( + Normalized( + 0.5, + ), + ), + ), + data_type: Some( + Decimal, + ), + }, + Literal { + data: Some( + Decimal( + Normalized( + 0.01, + ), + ), + ), + data_type: Some( + Decimal, + ), + }, + ], + user_defined: false, }, ), ], diff --git a/src/frontend/src/expr/agg_call.rs b/src/frontend/src/expr/agg_call.rs index 7bbd1f1952db2..5d86594d32e92 100644 --- a/src/frontend/src/expr/agg_call.rs +++ b/src/frontend/src/expr/agg_call.rs @@ -43,6 +43,10 @@ impl std::fmt::Debug for AggCall { .field("return_type", &self.return_type) .field("args", &self.args) .field("filter", &self.filter) + .field("distinct", &self.distinct) + .field("order_by", &self.order_by) + .field("direct_args", &self.direct_args) + .field("user_defined", &self.user_defined.is_some()) .finish() } else { let mut builder = f.debug_tuple(&format!("{}", self.agg_kind));