Repository navigation
fix: preserve aggregate ordering when output aliases shadow inputs - #436
Merged
Merged
Conversation
|
Review: looks good. Nothing blocking.
🤖 Generated with Claude Code |
tonyalaribe
marked this pull request as ready for review
October 26, 2026 00:25
Monoscope production impact · Coverage unknownProject Evidence window (UTC): 2026-10-19 00:25:51.526208228 UTC → 2026-10-26 00:25:51.526208228 UTC Coverage: Open Monoscope for evidence and coverage details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Aggregate queries such as
MAX(last_seen)::TEXT AS last_seen ... ORDER BY MAX(last_seen) DESCfail with a duplicate-field error. Pin the corrected DataFusion fork so aggregate ordering uses the numeric input while direct output-alias ordering keeps text semantics.All 33 DataFusion patch entries move together to
1f06ab1bd4f27506e0e12d435c36f2673dfbbd98. The lockfile changes only that revision. Fork PR #4 is merged intotimefusion-upgrade-55.1as08a81e94c5557b01ec5f2cdd64c6770dffad1787; ancestry is verified. The fork also corrects correlated UNNEST SQL generation with existing Snowflake snapshots unchanged.The real PGWire regression fails on the old dependency and passes on the new one. It checks simple and prepared protocols: aggregate ordering returns
10, 2; direct text-alias ordering returns2, 10.Validation:
make ci-signoff CHECKS="fmt clippy test pg-smoke e2e"passes on exact commit4d2d5b06125f62ce5f43265867e19b075ad969dc: formatting, lint, 2,892 native tests, 16 doctests, PG smoke, and all 85 end-to-end tests.SUM not supported for Nulldiagnostic remains nonterminal through fallback for these checked shapes. This is not production-data parity.130ad9b6127938600b12fdf8d88fbc48ba1512c52d44e53972da7c6e4a0adbe9. Runtime:ghcr.io/monoscope-tech/timefusion@sha256:fcfb1f25e950e19d000f81bee62e4e77310c7d47b45f4b8404d65525896a0a43.The observed Monoscope caller remains unattributed. Proxy timing gives candidate external connections, but no exact connection witness or application identity. Deployment and matched production recurrence acceptance remain pending.