Skip to content

Commit

Permalink
improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinzwang committed Nov 22, 2024
1 parent 22fed28 commit d23e167
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/daft-dsl/src/resolve_expr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@ fn expand_wildcards(
/// - sum(col("a")) + col("b") when "b" is a group by key
///
/// Not allowed:
/// - col("a")
/// - col("a") when "a" is not a group by key
/// - not an aggregation
/// - sum(col("a")) + col("b") when "b" is not a group by key
/// - not all branches are aggregations
/// - not all branches are aggregations, literals, or group by keys
fn has_single_agg_layer(expr: &ExprRef, groupby: &HashSet<ExprRef>) -> bool {
groupby.contains(expr)
|| match expr.as_ref() {
Expand Down

0 comments on commit d23e167

Please sign in to comment.