Skip to content

Commit

Permalink
expose function direct_args
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Jul 18, 2024
1 parent 3f491de commit 6265b13
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
44 changes: 44 additions & 0 deletions src/frontend/src/binder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
),
],
Expand Down
4 changes: 4 additions & 0 deletions src/frontend/src/expr/agg_call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 6265b13

Please sign in to comment.