-
Notifications
You must be signed in to change notification settings - Fork 596
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
11 changes: 9 additions & 2 deletions
11
src/frontend/planner_test/tests/testdata/input/functional_dependency.yaml
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 |
---|---|---|
@@ -1,8 +1,15 @@ | ||
- name: test functional dependency for order key pruning | ||
- name: test functional dependency for order key pruning (order by) | ||
sql: | | ||
create table t1 (id int primary key, i int); | ||
select id, i from t1 order by id, i limit 2; | ||
expected_outputs: | ||
- logical_plan | ||
- stream_plan | ||
- batch_plan | ||
- batch_plan | ||
- name: test functional dependency for order key pruning (index) | ||
sql: | | ||
create table t1 (v1 int, v2 int); | ||
create materialized view v as select count(*) cnt from t1; | ||
explain (verbose) create index mv_idx on v(cnt); | ||
expected_outputs: | ||
- explain_output |
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