-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug #30528604: DELETE THE PRE-ITERATOR EXECUTOR
No queries should run in the pre-iterator executor anymore, so it is dead code. (The sole exception was certain cases in the secondary engine mock, which has been fixed in this patch.) Thus, remove it, as much as we can -- we are still in the situation where the optimizer sets up data structures for an executor that doesn't exist, but that's how it will be in the foreseeable future. Many places used function pointers (e.g. sub_select and sub_select_op); these have been replaced with enums, so that we can remove the functions in question altogether. In particular, qep_tab[-1].next_select has been replaced with a new qep_tab->op_type everywhere, that identifies which operation the given QEP_TAB is supposed to do, e.g. materialization, grouping + materialization, BNL, BKA, etc.. This means we need to allocate one extra QEP_TAB for now. RAPID has been given a new hook for taking over the execution, since first_select is gone. There are many cleanups that would be possible but are too complex to be within scope for this patch. As an example, Query_result_union_direct is all but dead and could probably be removed; this would allow refactoring Query_result_union (which now is nearly only about creating temporary tables) to not be a query result anymore, which in turn would leave Query_result_interceptor up for removal, and so on. In the same vein, the notion of SELECT_LEX having a Query_result on its own is probably up for deletion. All in all, this is a net deletion of more than 6500 lines of code. Change-Id: I476b0491b9c7035128655ea83ec6c4dd168b0882
- Loading branch information
Steinar H. Gunderson
committed
Dec 20, 2019
1 parent
c73c493
commit ef166f8
Showing
22 changed files
with
2,412 additions
and
9,034 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
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.