-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepare the queryproject to make order by easier at plan time
Signed-off-by: Andres Taylor <[email protected]>
- Loading branch information
Showing
5 changed files
with
68 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1 @@ | ||
# Add your test case here for debugging and run go test -run=One. | ||
"select user.name, music.id from user, music order by user.name, music.id" | ||
{ | ||
"QueryType": "SELECT", | ||
"Original": "select user.name, music.id from user, music order by user.name, music.id", | ||
"Instructions": { | ||
"OperatorType": "Sort", | ||
"Variant": "Memory", | ||
"OrderBy": "0 ASC, 1 ASC", | ||
"Inputs": [ | ||
{ | ||
"OperatorType": "Join", | ||
"Variant": "Join", | ||
"JoinColumnIndexes": "-1,1,-2,2", | ||
"TableName": "`user`_music", | ||
"Inputs": [ | ||
{ | ||
"OperatorType": "Route", | ||
"Variant": "SelectScatter", | ||
"Keyspace": { | ||
"Name": "user", | ||
"Sharded": true | ||
}, | ||
"FieldQuery": "select `user`.`name`, weight_string(`user`.`name`) from `user` where 1 != 1", | ||
"Query": "select `user`.`name`, weight_string(`user`.`name`) from `user`", | ||
"Table": "`user`" | ||
}, | ||
{ | ||
"OperatorType": "Route", | ||
"Variant": "SelectScatter", | ||
"Keyspace": { | ||
"Name": "user", | ||
"Sharded": true | ||
}, | ||
"FieldQuery": "select music.id, weight_string(music.id) from music where 1 != 1", | ||
"Query": "select music.id, weight_string(music.id) from music", | ||
"Table": "music" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
Gen4 plan same as above |
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