Window functions and experimental syntax promotion (#325) #391
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.
Remove r -> a fundep from SqlSelect and update to accept to support the change
fix record derivation to support SqlSelect fun dep changes
Move window definition from previous branch to new branch based off of current master; Break Frame definition out into its own file; Start Work on connecting Window definition language to SqlExpr language
Fix typo with preceding; Add initial tests to verify window functions are rendering correctly
Add window function tests
Add new context variable to SqlExpr; Start with everything in terms of ValueContext and begin easing constraints
Add aggregate context; Update all aggregation functions to return SqlAgg; Modify ToAliasReference to correctly reset context to value (all references are values); Added test to verify that filterWhere works with over
Revert all SqlAgg functions back to SqlExpr; Split SqlSelect typeclass in two to support type inference for subquery context erasure
Remove MergeContext in favor of explicitly lifting values into the windowed context
Relax the type of aggregate functions to leave ctx open.
Add some comments; Change the ctx on some functions
Run stylish on window modules
Fix implementation of ToAliasReference in record derivation
Preserve type variable ordering of
Add type role to forbid coerce
fix build
rename between between_
export framerange type
generalize case_
generalize val
a few more patches
Refactor common tests
Add legacy test modules for mysql and sqlite; Fix warnings in test compilation
Add changelog entry; Add warnings to Experiment/Legacy top level modules; Change default top level module to new syntax
Run stylish on window function modules
Fix compilation error in warning pragmas
Before submitting your PR, check that you've:
@since
declarations to the Haddock.stylish-haskell
and otherwise adhered to the style guide.After submitting your PR: