-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(backends): preserve
order_by
position in window function when s…
…ubsequent expressions are duplicated (#7943) ## Description of changes This PR fixes an issue where duplicate window expressions were given the position of the new (duplicated value) of the expression, rather than preserving the original order. This was because we were iterating over the new keys first and putting those expressions into a `dict`. BY iterating over the old keys first, we preserve the original order. ## Issues closed Closes #7940.
- Loading branch information
Showing
3 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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