Skip to content
Merged
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions python/datafusion/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,8 @@ def corr(value1: Expr, value2: Expr, distinct: bool = False) -> Expr:

def count(args: Expr | list[Expr] | None = None, distinct: bool = False) -> Expr:
"""Returns the number of rows that match the given arguments."""
if args is None:
return Expr(f.count_star())
if isinstance(args, list):
args = [arg.expr for arg in args]
elif isinstance(args, Expr):
Expand Down
Loading