From 997e64b1a2328f034d263a2ed42cedc6671c2ca6 Mon Sep 17 00:00:00 2001 From: JackTan25 Date: Tue, 19 Dec 2023 15:43:24 +0800 Subject: [PATCH] remove bad code --- .../service/src/interpreters/interpreter_table_set_options.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/query/service/src/interpreters/interpreter_table_set_options.rs b/src/query/service/src/interpreters/interpreter_table_set_options.rs index 1ffef79d48c2a..0d770ca92c329 100644 --- a/src/query/service/src/interpreters/interpreter_table_set_options.rs +++ b/src/query/service/src/interpreters/interpreter_table_set_options.rs @@ -92,8 +92,7 @@ impl Interpreter for SetOptionsInterpreter { let table = self.plan.table.as_str(); let tbl = catalog .get_table(self.ctx.get_tenant().as_str(), database, table) - .await - .ok(); + .await?; let table = if let Some(table) = &tbl { // check mutability