buraksenn opened a new pull request, #23918: URL: https://github.com/apache/datafusion/pull/23918
## Which issue does this PR close? - Closes #23818. ## Rationale for this change Please check the issue for details, but the main idea is that a nullable `UNIQUE` column permits multiple NULL rows, so it does not determine later sort keys across them and they must not be pruned. ## What changes are included in this PR? `FunctionalDependencies` tracks a `NullEquality` per dependency. Sort-key pruning now requires the determinant to treat NULLs as equal (GROUP BY key), be non-nullable, or have `NOT NULL` sources. ## Are these changes tested? Yes, regression tests added in `functional_dependencies.slt`. ## Are there any user-facing changes? No API changes; incorrect results are fixed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
