You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
MCOL-3766 EXPLAIN now doesn't execute query via SH thus doesn't fail
every other run.
This commit is contained in:
@@ -883,8 +883,13 @@ create_columnstore_select_handler(THD* thd, SELECT_LEX* select_lex)
|
|||||||
{
|
{
|
||||||
handler= new ha_columnstore_select_handler(thd, select_lex);
|
handler= new ha_columnstore_select_handler(thd, select_lex);
|
||||||
mcs_handler_info mhi= mcs_handler_info(reinterpret_cast<void*>(handler), SELECT);
|
mcs_handler_info mhi= mcs_handler_info(reinterpret_cast<void*>(handler), SELECT);
|
||||||
// this::table is the place for the result set
|
// handler::table is the place for the result set
|
||||||
int rc= ha_cs_impl_pushdown_init(&mhi, handler->table);
|
int rc= 0;
|
||||||
|
// Skip execution for EXPLAIN queries
|
||||||
|
if (!thd->lex->describe)
|
||||||
|
{
|
||||||
|
rc= ha_cs_impl_pushdown_init(&mhi, handler->table);
|
||||||
|
}
|
||||||
|
|
||||||
// Return SH even if init fails b/c CS changed SELECT_LEX structures
|
// Return SH even if init fails b/c CS changed SELECT_LEX structures
|
||||||
// with simplify_joins_()
|
// with simplify_joins_()
|
||||||
|
Reference in New Issue
Block a user