Skip to content

Commit

Permalink
removed mutate print message for grouping
Browse files Browse the repository at this point in the history
  • Loading branch information
drizk1 committed Apr 7, 2024
1 parent e920cfa commit 29c66d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/examples/UserGuide/key_differences.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ copy_to(db, df, "df_mem"); # copying over the df to memory

@chain db_table(db, :df_mem) begin
@group_by(groups)
@mutate(max = maximum(percent), min = minimum(percent))
# @mutate(max = maximum(percent), min = minimum(percent))
@slice_max(percent)
@collect
end

@chain db_table(db, :df_mem) begin
@group_by(groups)
@mutate(max = maximum(percent), min = minimum(percent))
@group_by(groups)
# @mutate(max = maximum(percent), min = minimum(percent))
# @group_by(groups)
@slice_max(percent)
@collect
end
Expand Down
6 changes: 3 additions & 3 deletions src/TBD_macros.jl
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,9 @@ macro mutate(sqlquery, mutations...)
sq.from = string(cte_name)

sq.select = "*" # This selects everything from the CTE without duplicating transformations
if !isempty(sq.groupBy)
println("@mutate removed grouping after applying mutations.")
end
# if !isempty(sq.groupBy)
# println("@mutate removed grouping after applying mutations.")
# end
sq.groupBy =""
else
error("Expected sqlquery to be an instance of SQLQuery")
Expand Down

0 comments on commit 29c66d8

Please sign in to comment.