You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
Merge pull request #835 from tntnatbry/union-subquery
Disable processing of a union in a subquery by the select_handler
This commit is contained in:
@ -718,6 +718,16 @@ create_columnstore_select_handler(THD* thd, SELECT_LEX* select_lex)
|
||||
return handler;
|
||||
}
|
||||
|
||||
// Disable SH processing for UNION in a subquery.
|
||||
// This way, the server falls back to using the DH for executing
|
||||
// the UNION, if enabled.
|
||||
TABLE_LIST *tbl_ptr = select_lex->get_table_list();
|
||||
if (tbl_ptr && tbl_ptr->derived &&
|
||||
(tbl_ptr->derived->is_unit_op() || tbl_ptr->derived->fake_select_lex))
|
||||
{
|
||||
return handler;
|
||||
}
|
||||
|
||||
bool unsupported_feature = false;
|
||||
// Select_handler use the short-cut that effectively disables
|
||||
// INSERT..SELECT, LDI, SELECT..INTO OUTFILE
|
||||
|
Reference in New Issue
Block a user