Skip to content

Commit d16b568

Browse files
timsaucerclaude
andcommitted
docs: clarify distinct kwarg on sum and avg
Drop the unhelpful "upstream avg_distinct/sum_distinct shortcut" reference in favor of describing the actual behavior. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 6a000ec commit d16b568

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

python/datafusion/functions.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4533,8 +4533,7 @@ def avg(
45334533
45344534
Args:
45354535
expression: Values to combine into an array
4536-
distinct: If True, only distinct values are averaged. Equivalent to the
4537-
upstream ``avg_distinct`` shortcut.
4536+
distinct: If True, duplicate values are removed before averaging.
45384537
filter: If provided, only compute against rows for which the filter is True
45394538
45404539
Examples:
@@ -4861,8 +4860,7 @@ def sum(
48614860
48624861
Args:
48634862
expression: Values to combine into an array
4864-
distinct: If True, only distinct values are summed. Equivalent to the
4865-
upstream ``sum_distinct`` shortcut.
4863+
distinct: If True, duplicate values are removed before summing.
48664864
filter: If provided, only compute against rows for which the filter is True
48674865
48684866
Examples:

0 commit comments

Comments
 (0)