Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ded7342d
Commit
ded7342d
authored
May 29, 2011
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Update test results (trivial)
- Code cleanup: remove garbage comments
parent
6f17421c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
35 deletions
+2
-35
mysql-test/r/subselect_mat.result
mysql-test/r/subselect_mat.result
+2
-0
sql/opt_subselect.cc
sql/opt_subselect.cc
+0
-11
sql/sql_base.cc
sql/sql_base.cc
+0
-22
sql/sql_select.cc
sql/sql_select.cc
+0
-2
No files found.
mysql-test/r/subselect_mat.result
View file @
ded7342d
set @@optimizer_switch='materialization=on,in_to_exists=off,semijoin=off';
drop table if exists t1, t2, t3, t1i, t2i, t3i;
drop table if exists columns;
drop table if exists t1_16, t2_16, t3_16;
drop view if exists v1, v2, v1m, v2m;
create table t1 (a1 char(8), a2 char(8));
create table t2 (b1 char(8), b2 char(8));
...
...
sql/opt_subselect.cc
View file @
ded7342d
...
...
@@ -890,8 +890,6 @@ void get_delayed_table_estimates(TABLE *table,
{
Item_in_subselect
*
item
=
table
->
pos_in_table_list
->
jtbm_subselect
;
//psergey-merge: moving off here: item->optimize(&rows, &read_time);
DBUG_ASSERT
(
item
->
engine
->
engine_type
()
==
subselect_engine
::
HASH_SJ_ENGINE
);
...
...
@@ -1322,12 +1320,9 @@ static bool convert_subq_to_jtbm(JOIN *parent_join,
TABLE_LIST
*
tl
;
DBUG_ENTER
(
"convert_subq_to_jtbm"
);
//if (subq_pred->setup_engine(TRUE))
// DBUG_RETURN(TRUE);
double
rows
;
double
read_time
;
// psergey-merge: disable IN->EXISTS for JTBM subqueries, for now.
subq_pred
->
in_strategy
&=
~
SUBS_IN_TO_EXISTS
;
subq_pred
->
optimize
(
&
rows
,
&
read_time
);
...
...
@@ -1335,12 +1330,6 @@ static bool convert_subq_to_jtbm(JOIN *parent_join,
subq_pred
->
jtbm_record_count
=
rows
;
subq_pred
->
is_jtbm_merged
=
TRUE
;
//psergey-merge: The following is called inside optimize() call:
#if 0
if (subq_pred->setup_mat_engine())
DBUG_RETURN(TRUE);
#endif
if
(
subq_pred
->
engine
->
engine_type
()
!=
subselect_engine
::
HASH_SJ_ENGINE
)
{
*
remove_item
=
FALSE
;
...
...
sql/sql_base.cc
View file @
ded7342d
...
...
@@ -7816,28 +7816,6 @@ bool setup_tables(THD *thd, Name_resolution_context *context,
DBUG_RETURN
(
1
);
}
DBUG_ASSERT
(
item
==
table_list
->
jtbm_subselect
->
optimizer
);
/*
{
Item_in_subselect *subq_pred= table_list->jtbm_subselect;
double rows;
double read_time;
// psergey-merge: disable IN->EXISTS for JTBM subqueries, for now.
subq_pred->in_strategy &= ~SUBS_IN_TO_EXISTS;
subq_pred->optimize(&rows, &read_time);
subq_pred->jtbm_read_time= read_time;
subq_pred->jtbm_record_count=rows;
subq_pred->is_jtbm_merged= TRUE;
}
// The following call should never ever be made on its own anymore:
if (table_list->jtbm_subselect->setup_mat_engine()) // dont_switch_arena=FALSE
DBUG_RETURN(1);
*/
//psergey-merge: fix prepared statements:
//subselect_hash_sj_engine *mat_engine=
// (subselect_hash_sj_engine*)table_list->jtbm_subselect->engine;
//table= table_list->table= mat_engine->tmp_table;
}
}
...
...
sql/sql_select.cc
View file @
ded7342d
...
...
@@ -785,7 +785,6 @@ inject_jtbm_conds(JOIN *join, List<TABLE_LIST> *join_list, Item **join_where)
double
rows
;
double
read_time
;
// psergey-merge: disable IN->EXISTS for JTBM subqueries, for now.
subq_pred
->
in_strategy
&=
~
SUBS_IN_TO_EXISTS
;
subq_pred
->
optimize
(
&
rows
,
&
read_time
);
...
...
@@ -908,7 +907,6 @@ JOIN::optimize()
thd
->
restore_active_arena
(
arena
,
&
backup
);
}
//psergey-merge
inject_jtbm_conds
(
this
,
join_list
,
&
conds
);
conds
=
optimize_cond
(
this
,
conds
,
join_list
,
&
cond_value
,
&
cond_equal
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment