-
Notifications
You must be signed in to change notification settings - Fork 609
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sql): outer order by should take precedence over inner order by
- Loading branch information
Showing
9 changed files
with
137 additions
and
10 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
7 changes: 7 additions & 0 deletions
7
ibis/backends/tests/sql/snapshots/test_sql/test_double_order_by/out.sql
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,7 @@ | ||
SELECT | ||
"t0"."a", | ||
"t0"."b" | ||
FROM "t" AS "t0" | ||
ORDER BY | ||
"t0"."b" DESC, | ||
"t0"."a" ASC |
9 changes: 9 additions & 0 deletions
9
ibis/backends/tests/sql/snapshots/test_sql/test_double_order_by_deferred/out.sql
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,9 @@ | ||
SELECT | ||
"t0"."a", | ||
"t0"."b", | ||
"t0"."c" | ||
FROM "t" AS "t0" | ||
ORDER BY | ||
"t0"."b" ASC, | ||
"t0"."a" DESC, | ||
"t0"."c" ASC |
10 changes: 10 additions & 0 deletions
10
ibis/backends/tests/sql/snapshots/test_sql/test_double_order_by_different_expression/out.sql
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,10 @@ | ||
SELECT | ||
"t0"."a", | ||
"t0"."b", | ||
"t0"."c" | ||
FROM "t" AS "t0" | ||
ORDER BY | ||
"t0"."b" ASC, | ||
"t0"."a" + CAST(1 AS TINYINT) DESC, | ||
"t0"."a" ASC, | ||
"t0"."c" ASC |
7 changes: 7 additions & 0 deletions
7
ibis/backends/tests/sql/snapshots/test_sql/test_double_order_by_not_fused/out.sql
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,7 @@ | ||
SELECT | ||
"t0"."a", | ||
"t0"."b" | ||
FROM "t" AS "t0" | ||
ORDER BY | ||
"t0"."a" ASC, | ||
"t0"."b" DESC |
9 changes: 9 additions & 0 deletions
9
ibis/backends/tests/sql/snapshots/test_sql/test_double_order_by_same_column/out.sql
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,9 @@ | ||
SELECT | ||
"t0"."a", | ||
"t0"."b", | ||
"t0"."c" | ||
FROM "t" AS "t0" | ||
ORDER BY | ||
"t0"."b" ASC, | ||
"t0"."a" DESC, | ||
"t0"."c" ASC |
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