Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
apache
/
datafusion
Public
Notifications
You must be signed in to change notification settings
Fork
2.4k
Star
9.3k
Code
Issues
1.8k
Pull requests
375
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
feat: DISTINCT handling for Aggregate UDFs
- #25288
#25288
Open
mkleen
wants to merge 22 commits into
apache:main
apache/datafusion:main
from
mkleen:eliminate-aggregate-distinct
mkleen/datafusion:eliminate-aggregate-distinct
Copy head branch name to clipboard
Conversation
Commits
22
(22)
Checks
Files changed
Open
feat: DISTINCT handling for Aggregate UDFs
#25288
mkleen
wants to merge 22 commits into
apache:main
apache/datafusion:main
from
mkleen:eliminate-aggregate-distinct
mkleen/datafusion:eliminate-aggregate-distinct
Copy head branch name to clipboard
Commits
Commits on Sep 12, 2026
feat: teach AggregateUDFImpl how it treats DISTINCT, and strip the flag when it is a no-op
Show description for d96fa56
mkleen
and
claude
committed
d96fa56
View commit details
Copy full SHA for d96fa56
Browse repository at this point
fix: keep DISTINCT on mixed aggregate nodes, and correct three mis-tagged functions
Show description for 957c8d6
mkleen
and
claude
committed
957c8d6
View commit details
Copy full SHA for 957c8d6
Browse repository at this point
Commits on Sep 13, 2026
refactor: simplify EliminateAggregateDistinct
Show description for df7420e
mkleen
and
claude
committed
df7420e
View commit details
Copy full SHA for df7420e
Browse repository at this point
docs: correct how stddev, variance and approx_median handle DISTINCT
Show description for 7392cf5
mkleen
and
claude
committed
7392cf5
View commit details
Copy full SHA for 7392cf5
Browse repository at this point
fix: tag grouping as Ignored, align the UDAF guide, and mark DistinctHandling non_exhaustive
Show description for 4c8f773
mkleen
and
claude
committed
4c8f773
View commit details
Copy full SHA for 4c8f773
Browse repository at this point
Commits on Sep 14, 2026
Merge branch 'main' into eliminate-aggregate-distinct
mkleen
authored
0f5e908
View commit details
Copy full SHA for 0f5e908
Browse repository at this point
Merge branch 'main' into eliminate-aggregate-distinct
mkleen
authored
ad518d5
View commit details
Copy full SHA for ad518d5
Browse repository at this point
Commits on Sep 15, 2026
Update datafusion/optimizer/src/eliminate_aggregate_distinct.rs
Show description for 73cf471
mkleen
and
adriangb
authored
73cf471
View commit details
Copy full SHA for 73cf471
Browse repository at this point
Update datafusion/optimizer/src/eliminate_aggregate_distinct.rs
Show description for 48ca901
mkleen
and
adriangb
authored
48ca901
View commit details
Copy full SHA for 48ca901
Browse repository at this point
Update datafusion/functions-aggregate/src/stddev.rs
Show description for 4d88204
mkleen
and
adriangb
authored
4d88204
View commit details
Copy full SHA for 4d88204
Browse repository at this point
Update datafusion/functions-aggregate/src/approx_median.rs
Show description for 4aca608
mkleen
and
adriangb
authored
4aca608
View commit details
Copy full SHA for 4aca608
Browse repository at this point
Update docs/source/library-user-guide/functions/adding-udfs.md
Show description for 2a86d2c
mkleen
and
adriangb
authored
2a86d2c
View commit details
Copy full SHA for 2a86d2c
Browse repository at this point
Update datafusion/sqllogictest/test_files/aggregates_simplify.slt
Show description for 5481cb4
mkleen
and
adriangb
authored
5481cb4
View commit details
Copy full SHA for 5481cb4
Browse repository at this point
Update datafusion/expr/src/udaf.rs
Show description for 0b227ec
mkleen
and
adriangb
authored
0b227ec
View commit details
Copy full SHA for 0b227ec
Browse repository at this point
Update datafusion/functions-aggregate/src/stddev.rs
Show description for 688348d
mkleen
and
adriangb
authored
688348d
View commit details
Copy full SHA for 688348d
Browse repository at this point
Update docs/source/library-user-guide/functions/adding-udfs.md
Show description for 787b3c8
mkleen
and
adriangb
authored
787b3c8
View commit details
Copy full SHA for 787b3c8
Browse repository at this point
Update datafusion/functions-aggregate/src/bit_and_or_xor.rs
Show description for 2c0a9c2
mkleen
and
adriangb
authored
2c0a9c2
View commit details
Copy full SHA for 2c0a9c2
Browse repository at this point
Update datafusion/functions-aggregate/src/grouping.rs
Show description for d49bf3f
mkleen
and
adriangb
authored
d49bf3f
View commit details
Copy full SHA for d49bf3f
Browse repository at this point
Update datafusion/functions-aggregate/src/first_last.rs
Show description for c7c80f1
mkleen
and
adriangb
authored
c7c80f1
View commit details
Copy full SHA for c7c80f1
Browse repository at this point
Update datafusion/sqllogictest/test_files/aggregates_simplify.slt
Show description for 7060040
mkleen
and
adriangb
authored
7060040
View commit details
Copy full SHA for 7060040
Browse repository at this point
Update datafusion/expr/src/udaf.rs
Show description for 1448d79
mkleen
and
adriangb
authored
1448d79
View commit details
Copy full SHA for 1448d79
Browse repository at this point
Update datafusion/optimizer/src/eliminate_aggregate_distinct.rs
Show description for 67c323f
mkleen
and
adriangb
authored
67c323f
View commit details
Copy full SHA for 67c323f
Browse repository at this point
You can’t perform that action at this time.