forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix and Make aggregation planner handle aggregation functions better (v…
…itessio#13228) * handle unpushed aggregation better Signed-off-by: Andres Taylor <[email protected]> * distinct on aggregator and changed distinct engine primitive to take offset than truncate bool Signed-off-by: Harshit Gangal <[email protected]> * handle SUM with the new operator horizon planning Signed-off-by: Andres Taylor <[email protected]> * empty t10 after running tests Signed-off-by: Andres Taylor <[email protected]> * add collations and weight_string for aggregations where engine primitive is supported Signed-off-by: Harshit Gangal <[email protected]> * compare columns using semantic equality Signed-off-by: Andres Taylor <[email protected]> * handle grouping expressions that are returned in multiple columns Signed-off-by: Andres Taylor <[email protected]> * add end2end test to show that query works Signed-off-by: Andres Taylor <[email protected]> * on aggregate count and sum splittling create new aggr and update the column offset based on where it is pushed Signed-off-by: Harshit Gangal <[email protected]> * add waitForAuthoritative for last insert id test Signed-off-by: Harshit Gangal <[email protected]> * fix: push nil for min max cases for other side Signed-off-by: Harshit Gangal <[email protected]> * saves vtgate startup time as most of the test only have primary Signed-off-by: Harshit Gangal <[email protected]> * allow min/max without weight_string, projection to be created always on aggregation pushing with join, compact done later Signed-off-by: Harshit Gangal <[email protected]> --------- Signed-off-by: Andres Taylor <[email protected]> Signed-off-by: Harshit Gangal <[email protected]> Co-authored-by: Andres Taylor <[email protected]>
- Loading branch information
1 parent
4a71f3d
commit 561205f
Showing
29 changed files
with
1,253 additions
and
726 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
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,74 @@ | ||
create table t1( | ||
id1 bigint, | ||
id2 bigint, | ||
primary key(id1) | ||
) Engine=InnoDB; | ||
|
||
create table t1_copy_basic( | ||
id1 bigint, | ||
id2 bigint, | ||
primary key(id1) | ||
) Engine=InnoDB; | ||
|
||
create table t1_copy_all( | ||
id1 bigint, | ||
id2 bigint, | ||
primary key(id1) | ||
) Engine=InnoDB; | ||
|
||
create table t1_copy_resume( | ||
id1 bigint, | ||
id2 bigint, | ||
primary key(id1) | ||
) Engine=InnoDB; | ||
|
||
create table t1_id2_idx( | ||
id2 bigint, | ||
keyspace_id varbinary(10), | ||
primary key(id2) | ||
) Engine=InnoDB; | ||
|
||
create table vstream_test( | ||
id bigint, | ||
val bigint, | ||
primary key(id) | ||
) Engine=InnoDB; | ||
|
||
create table aggr_test( | ||
id bigint, | ||
val1 varchar(16), | ||
val2 bigint, | ||
primary key(id) | ||
) Engine=InnoDB; | ||
|
||
create table t2( | ||
id3 bigint, | ||
id4 bigint, | ||
primary key(id3) | ||
) Engine=InnoDB; | ||
|
||
create table t2_id4_idx( | ||
id bigint not null auto_increment, | ||
id4 bigint, | ||
id3 bigint, | ||
primary key(id), | ||
key idx_id4(id4) | ||
) Engine=InnoDB; | ||
|
||
create table t1_last_insert_id( | ||
id bigint not null auto_increment, | ||
id1 bigint, | ||
primary key(id) | ||
) Engine=InnoDB; | ||
|
||
create table t1_row_count( | ||
id bigint not null, | ||
id1 bigint, | ||
primary key(id) | ||
) Engine=InnoDB; | ||
|
||
create table t1_sharded( | ||
id1 bigint, | ||
id2 bigint, | ||
primary key(id1) | ||
) Engine=InnoDB; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.