-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(sqlplannertest): further split test cases, support specify r…
…ules enabled (#190) * Split TPC-H test cases * Add the test case that causes cycles Signed-off-by: Alex Chi <iskyzh@gmail.com>
- Loading branch information
Showing
22 changed files
with
3,583 additions
and
2,889 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
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
File renamed without changes.
File renamed without changes.
35 changes: 35 additions & 0 deletions
35
optd-sqlplannertest/tests/pushdowns/fliter_transpose.planner.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,35 @@ | ||
-- (no id or description) | ||
create table t1(t1v1 int, t1v2 int); | ||
create table t2(t2v1 int, t2v3 int); | ||
insert into t1 values (0, 0), (1, 1), (2, 2); | ||
insert into t2 values (0, 200), (1, 201), (2, 202); | ||
|
||
/* | ||
3 | ||
3 | ||
*/ | ||
|
||
-- Test whether we can transpose filter and projection | ||
SELECT t1.t1v1, t1.t1v2, t2.t2v3 | ||
FROM t1, t2 | ||
WHERE t1.t1v1 = t2.t2v1; | ||
|
||
/* | ||
LogicalProjection { exprs: [ #0, #1, #3 ] } | ||
└── LogicalFilter | ||
├── cond:Eq | ||
│ ├── #0 | ||
│ └── #2 | ||
└── LogicalJoin { join_type: Cross, cond: true } | ||
├── LogicalScan { table: t1 } | ||
└── LogicalScan { table: t2 } | ||
PhysicalProjection { exprs: [ #0, #1, #3 ] } | ||
└── PhysicalFilter | ||
├── cond:Eq | ||
│ ├── #0 | ||
│ └── #2 | ||
└── PhysicalNestedLoopJoin { join_type: Cross, cond: true } | ||
├── PhysicalScan { table: t1 } | ||
└── PhysicalScan { table: t2 } | ||
*/ | ||
|
Oops, something went wrong.