Reject DISTINCT window aggregates - #3212
Conversation
|
|
@fulghum DOLT
|
|
SummaryCoverage spans normal aggregate and ordered window calculations, duplicate and null handling, partitioning and frame behavior, function-name resolution, and invalid-query safeguards. It also exercises edge cases involving nested queries, mixed valid and invalid expressions, concurrent requests, and unavailable prepared-statement support, with healthy behavior across the exercised application paths. Safe to merge — the run found no PR-attributable regressions, new failures, or previously flagged failures, and all exercised behaviors matched expectations. The prepared-statement scenario is an environment capability limitation rather than a product failure and is not a merge blocker. Tests run by Ito
Tip Reply with @itoqa to send us feedback on this test run. |
ba508be to
0af4c78
Compare
Commit: SummaryCoverage focuses on database query behavior across normal scalar, aggregate, and window operations, along with edge cases involving duplicate values, nulls, overloaded functions, expression rewrites, rejected queries, session recovery, and concurrent requests. The exercised behaviors are broadly healthy, including correct results, precise error classification, isolation between requests, and continued operation after failures. Safe to merge — the only failure is a medium-severity, pre-existing diagnostic issue unrelated to this PR, with no observed regressions or PR-attributable failures. It is a flag for later because it affects error classification for a specific unsupported query shape but is not a merge blocker for this change. Tests run by ItoAdditional Findings DetailsThese findings are unrelated to the current changes but were observed during testing. 🟡 FILTER query returns the wrong error
Evidence PackageTip Reply with @itoqa to send us feedback on this test run. |
0af4c78 to
f85838f
Compare
Commit: SummaryCoverage focused on database query behavior across normal window calculations, malformed and unsupported queries, session recovery after errors, function-name collisions, partitions, ordering, frames, duplicates, and null values. The exercised paths represent happy-path business logic plus edge-case and adversarial validation of error handling and result correctness. Safe to merge — the sole observed defect is unrelated to this PR and is a medium-severity database behavior issue, while the PR has no regressions, new failures, or previously flagged failures. The unrelated finding should be tracked separately rather than treated as a merge blocker. Tests run by ItoAdditional Findings DetailsThese findings are unrelated to the current changes but were observed during testing. 🟡 Count window query returns incorrect rows
Evidence PackageTip Reply with @itoqa to send us feedback on this test run. |

Match PostgreSQL by rejecting DISTINCT window aggregates with SQLSTATE 0A000 after resolving the exact function overload, instead of silently ignoring DISTINCT. Preserve PostgreSQL scalar-function diagnostics, including user-defined and schema-qualified name collisions.
Depends on: go-mysql-server #3732