Skip to content

Commit

Permalink
Auto-commit work in progress before clean build on 2024-09-06 10:53:46
Browse files Browse the repository at this point in the history
  • Loading branch information
AdRiley committed Sep 6, 2024
1 parent 225c844 commit 77545ab
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ make_dialect_operations =

## PRIVATE
is_null = Base_Generator.lift_unary_op "IS_NULL" arg->
SQL_Builder.code "(CASE WHEN " ++ arg.paren ++ " IS NULL THEN 1 ELSE 0 END) = 1"
arg.paren ++ " IS NULL"

## PRIVATE
agg_count_is_null = Base_Generator.lift_unary_op "COUNT_IS_NULL" arg->
Expand All @@ -325,6 +325,7 @@ agg_count_empty = Base_Generator.lift_unary_op "COUNT_EMPTY" arg->
agg_count_not_empty = Base_Generator.lift_unary_op "COUNT_NOT_EMPTY" arg->
SQL_Builder.code "SUM(CASE WHEN (" ++ arg.paren ++ " IS NOT NULL) AND (" ++ arg.paren ++ " != '') THEN 1 ELSE 0 END)"


## PRIVATE
agg_median = Base_Generator.lift_unary_op "MEDIAN" arg->
median = SQL_Builder.code "MEDIAN(" ++ arg ++ ")"
Expand Down

0 comments on commit 77545ab

Please sign in to comment.