Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dask_sql/physical/utils/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def get_groupby_with_nulls_cols(
is_null_column = ~(group_column.isnull())
non_nan_group_column = group_column.fillna(0)

# split_out doesn't work if both columns have the same name
is_null_column.name = f"{is_null_column.name}_{new_temporary_column(df)}"

group_columns_and_nulls += [is_null_column, non_nan_group_column]

if not group_columns_and_nulls:
Expand Down