-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IGNITE-21946: Cover SQL F863(Nested <result offset clause> in <query …
…expression>) feature by tests
- Loading branch information
Showing
4 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
modules/sql-engine/src/integrationTest/sql/order/test_primary_offset.test
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,21 @@ | ||
# name: test/sql/order/test_primary_offset.test | ||
# description: F863: Nested <result offset clause>. Top-level <result offset clause> in <query expression> <query expression> | ||
# group: [order] | ||
|
||
statement ok | ||
CREATE TABLE test (a INTEGER); | ||
|
||
statement ok | ||
INSERT INTO test VALUES (1), (2), (3), (4) | ||
|
||
query I | ||
SELECT a FROM (SELECT a FROM test ORDER BY a OFFSET 2) t(a) UNION ALL SELECT a FROM test ORDER BY a | ||
---- | ||
1 | ||
2 | ||
3 | ||
3 | ||
4 | ||
4 | ||
|
||
|
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