Commit 3afbc7d
feat: accept distinct kwarg on sum and avg
Upstream exposes `sum_distinct` / `avg_distinct` / `count_distinct` as
sibling functions that call the same underlying UDAF with
`distinct: bool = true`. The Rust binding side already routes
`distinct=Some(true)` through the aggregate builder for `sum`, `avg`,
and `count` — but only `count` exposed the kwarg on the Python wrapper.
Add `distinct: bool = False` to `sum()` and `avg()` mirroring the
existing `count()` signature, and update SKILL.md so the check-upstream
audit does not re-flag the three upstream `*_distinct` shortcuts as
gaps. The plan emitted by `sum(col, distinct=True)` matches what
upstream's `sum_distinct(col)` builds.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent dac9ec6 commit 3afbc7d
3 files changed
Lines changed: 64 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
89 | | - | |
| 95 | + | |
| 96 | + | |
90 | 97 | | |
91 | 98 | | |
92 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4521 | 4521 | | |
4522 | 4522 | | |
4523 | 4523 | | |
| 4524 | + | |
4524 | 4525 | | |
4525 | 4526 | | |
4526 | 4527 | | |
4527 | 4528 | | |
4528 | 4529 | | |
4529 | 4530 | | |
4530 | 4531 | | |
4531 | | - | |
| 4532 | + | |
4532 | 4533 | | |
4533 | 4534 | | |
4534 | 4535 | | |
| 4536 | + | |
| 4537 | + | |
4535 | 4538 | | |
4536 | 4539 | | |
4537 | 4540 | | |
| |||
4551 | 4554 | | |
4552 | 4555 | | |
4553 | 4556 | | |
| 4557 | + | |
| 4558 | + | |
| 4559 | + | |
| 4560 | + | |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
4554 | 4565 | | |
4555 | 4566 | | |
4556 | | - | |
| 4567 | + | |
4557 | 4568 | | |
4558 | 4569 | | |
4559 | 4570 | | |
| |||
4838 | 4849 | | |
4839 | 4850 | | |
4840 | 4851 | | |
| 4852 | + | |
4841 | 4853 | | |
4842 | 4854 | | |
4843 | 4855 | | |
4844 | 4856 | | |
4845 | 4857 | | |
4846 | 4858 | | |
4847 | 4859 | | |
4848 | | - | |
| 4860 | + | |
4849 | 4861 | | |
4850 | 4862 | | |
4851 | 4863 | | |
| 4864 | + | |
| 4865 | + | |
4852 | 4866 | | |
4853 | 4867 | | |
4854 | 4868 | | |
| |||
4868 | 4882 | | |
4869 | 4883 | | |
4870 | 4884 | | |
| 4885 | + | |
| 4886 | + | |
| 4887 | + | |
| 4888 | + | |
| 4889 | + | |
| 4890 | + | |
| 4891 | + | |
| 4892 | + | |
4871 | 4893 | | |
4872 | 4894 | | |
4873 | | - | |
| 4895 | + | |
4874 | 4896 | | |
4875 | 4897 | | |
4876 | 4898 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1957 | 1957 | | |
1958 | 1958 | | |
1959 | 1959 | | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
1960 | 1990 | | |
1961 | 1991 | | |
1962 | 1992 | | |
| |||
0 commit comments