-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
planner: support a hint to read from tiflash in planner (#12479)
- Loading branch information
Showing
47 changed files
with
2,699 additions
and
2,503 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
drop table if exists t, tt; | ||
create table t(a int, b int, index ia(a)); | ||
desc select avg(a) from t; | ||
id count task operator info | ||
StreamAgg_20 1.00 root funcs:avg(Column#8, Column#9) | ||
└─IndexReader_21 1.00 root index:StreamAgg_8 | ||
└─StreamAgg_8 1.00 cop[tikv] funcs:avg(Column#1) | ||
└─IndexScan_19 10000.00 cop[tikv] table:t, index:a, range:[NULL,+inf], keep order:false, stats:pseudo | ||
desc select /*+ read_from_storage(tiflash[t]) */ avg(a) from t; | ||
id count task operator info | ||
StreamAgg_16 1.00 root funcs:avg(Column#8, Column#9) | ||
└─TableReader_17 1.00 root data:StreamAgg_8 | ||
└─StreamAgg_8 1.00 cop[tiflash] funcs:count(Column#1), sum(Column#1) | ||
└─TableScan_15 10000.00 cop[tiflash] table:t, range:[-inf,+inf], keep order:false, stats:pseudo | ||
desc select /*+ read_from_storage(tiflash[t]) */ sum(a) from t; | ||
id count task operator info | ||
StreamAgg_16 1.00 root funcs:sum(Column#7) | ||
└─TableReader_17 1.00 root data:StreamAgg_8 | ||
└─StreamAgg_8 1.00 cop[tiflash] funcs:sum(Column#1) | ||
└─TableScan_15 10000.00 cop[tiflash] table:t, range:[-inf,+inf], keep order:false, stats:pseudo | ||
desc select /*+ read_from_storage(tiflash[t]) */ sum(a+1) from t; | ||
id count task operator info | ||
StreamAgg_16 1.00 root funcs:sum(Column#7) | ||
└─TableReader_17 1.00 root data:StreamAgg_8 | ||
└─StreamAgg_8 1.00 cop[tiflash] funcs:sum(plus(Column#1, 1)) | ||
└─TableScan_15 10000.00 cop[tiflash] table:t, range:[-inf,+inf], keep order:false, stats:pseudo | ||
desc select /*+ read_from_storage(tiflash[t]) */ sum(isnull(a)) from t; | ||
id count task operator info | ||
StreamAgg_16 1.00 root funcs:sum(Column#7) | ||
└─TableReader_17 1.00 root data:StreamAgg_8 | ||
└─StreamAgg_8 1.00 cop[tiflash] funcs:sum(isnull(Column#1)) | ||
└─TableScan_15 10000.00 cop[tiflash] table:t, range:[-inf,+inf], keep order:false, stats:pseudo |
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
Oops, something went wrong.