diff --git a/python/openmldb_sdk/openmldb/sql_magic/sql_magic.py b/python/openmldb_sdk/openmldb/sql_magic/sql_magic.py index 4738153715b..557f36768a8 100644 --- a/python/openmldb_sdk/openmldb/sql_magic/sql_magic.py +++ b/python/openmldb_sdk/openmldb/sql_magic/sql_magic.py @@ -32,7 +32,7 @@ def sql(self, line, cell=None): else: sqlText = cell.replace("\n", " ") - is_query = sqlText.strip().lower().startswith("select") + is_query = sqlText.strip().lower().startswith("select") or sqlText.strip().lower().startswith("show") or sqlText.strip().lower().startswith("load") if is_query: rows = self.cursor.execute(sqlText).fetchall() schema_map = self.cursor.get_resultset_schema()