From 8cdcae0d2fd4d81a138c6bb24e10fee3c0b5023b Mon Sep 17 00:00:00 2001 From: Gagan Goel Date: Tue, 8 Nov 2022 17:44:38 -0500 Subject: [PATCH] MDEV-25080 Disable pushdown of SELECT_LEX_UNIT for CREATE VIEW statements. --- dbcon/mysql/ha_mcs_pushdown.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dbcon/mysql/ha_mcs_pushdown.cpp b/dbcon/mysql/ha_mcs_pushdown.cpp index 5cae5e171..3c8c7a70c 100644 --- a/dbcon/mysql/ha_mcs_pushdown.cpp +++ b/dbcon/mysql/ha_mcs_pushdown.cpp @@ -1036,6 +1036,9 @@ select_handler* create_columnstore_select_handler(THD* thd, SELECT_LEX* select_l select_handler* create_columnstore_unit_handler(THD* thd, SELECT_LEX_UNIT* sel_unit) { + if (thd->lex->sql_command == SQLCOM_CREATE_VIEW) + return nullptr; + return create_columnstore_select_handler_(thd, 0, sel_unit); }