SQL: Enable the InnerAggregates inside PIVOT (#65792)#65987
Merged
palesz merged 1 commit intoelastic:7.xfrom Dec 7, 2020
Merged
SQL: Enable the InnerAggregates inside PIVOT (#65792)#65987palesz merged 1 commit intoelastic:7.xfrom
palesz merged 1 commit intoelastic:7.xfrom
Conversation
* Remove the limitation of not being able to use `InnerAggregate` inside PIVOTs (aggregations using extended and matrix stats) * The limitation was introduced as part of the original `PIVOT` implementation in elastic#46489, but after elastic#49693 it could be lifted. * Test that the `PIVOT` results in the same query as the `GROUP BY`. This should hold across all the `AggregateFunction`s we have. (cherry-pick 67704b0)
Collaborator
|
Pinging @elastic/es-ql (Team:QL) |
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.
InnerAggregateinside PIVOTs (aggregations using extended and matrix stats)
PIVOTimplementation in SQL: Add PIVOT support #46489, but after Refactor named expression 3 #49693 it could be lifted.
PIVOTresults in the same query as theGROUP BY. This should hold across all theAggregateFunctions we have.(cherry-picked from 67704b0)