-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: in PQ post processing, revert sort columns just before propagati…
…ng down pipeline (#5098)
- Loading branch information
Showing
10 changed files
with
761 additions
and
35 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from albums | ||
select { AA=album_id, artist_id } | ||
sort AA | ||
filter AA >= 25 | ||
join artists (==artist_id) |
30 changes: 30 additions & 0 deletions
30
prqlc/prqlc/tests/integration/snapshots/integration__queries__compile__sort_2.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
source: prqlc/prqlc/tests/integration/queries.rs | ||
expression: "from albums\nselect { AA=album_id, artist_id }\nsort AA\nfilter AA >= 25\njoin artists (==artist_id)\n" | ||
input_file: prqlc/prqlc/tests/integration/queries/sort_2.prql | ||
--- | ||
WITH table_1 AS ( | ||
SELECT | ||
album_id AS "AA", | ||
artist_id | ||
FROM | ||
albums | ||
), | ||
table_0 AS ( | ||
SELECT | ||
"AA", | ||
artist_id | ||
FROM | ||
table_1 | ||
WHERE | ||
"AA" >= 25 | ||
) | ||
SELECT | ||
table_0."AA", | ||
table_0.artist_id, | ||
artists.* | ||
FROM | ||
table_0 | ||
JOIN artists ON table_0.artist_id = artists.artist_id | ||
ORDER BY | ||
table_0."AA" |
Oops, something went wrong.