From 3e4379dbd2397781d724fa9d0dd55516ee22bc38 Mon Sep 17 00:00:00 2001 From: obdev Date: Fri, 9 Feb 2024 09:27:22 +0000 Subject: [PATCH] occupy code for show table status --- src/objit/include/objit/common/ob_item_type.h | 2 ++ src/sql/engine/expr/ob_expr_eval_functions.cpp | 2 ++ src/sql/resolver/expr/ob_raw_expr_resolver_impl.cpp | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/objit/include/objit/common/ob_item_type.h b/src/objit/include/objit/common/ob_item_type.h index 11089dd706..6653531e1a 100755 --- a/src/objit/include/objit/common/ob_item_type.h +++ b/src/objit/include/objit/common/ob_item_type.h @@ -862,6 +862,8 @@ typedef enum ObItemType T_FUN_SYS_WORD_COUNT = 1811, T_FUN_SYS_BM25 = 1812, T_FUN_SYS_TRANSACTION_ID = 1813, + T_FUN_SYS_INNER_TABLE_OPTION_PRINTER = 1814, + T_FUN_SYS_INNER_TABLE_SEQUENCE_GETTER = 1815, T_FUN_SYS_END = 2000, T_FUN_SYS_ALIGN_DATE4CMP = 2010, diff --git a/src/sql/engine/expr/ob_expr_eval_functions.cpp b/src/sql/engine/expr/ob_expr_eval_functions.cpp index 36183192fc..9b29fcf165 100644 --- a/src/sql/engine/expr/ob_expr_eval_functions.cpp +++ b/src/sql/engine/expr/ob_expr_eval_functions.cpp @@ -1112,6 +1112,8 @@ static ObExpr::EvalFunc g_expr_eval_functions[] = { NULL, // ObExprWordCount::generate_word_count, /* 669 */ NULL, // ObExprBM25::eval_bm25_relevance_expr, /* 670 */ ObExprTransactionId::eval_transaction_id, /* 671 */ + NULL, //ObExprInnerTableOptionPrinter::eval_inner_table_option_printer, /* 672 */ + NULL, //ObExprInnerTableSequenceGetter::eval_inner_table_sequence_getter, /* 673 */ }; static ObExpr::EvalBatchFunc g_expr_eval_batch_functions[] = { diff --git a/src/sql/resolver/expr/ob_raw_expr_resolver_impl.cpp b/src/sql/resolver/expr/ob_raw_expr_resolver_impl.cpp index dbdad2880b..1acf6c6178 100644 --- a/src/sql/resolver/expr/ob_raw_expr_resolver_impl.cpp +++ b/src/sql/resolver/expr/ob_raw_expr_resolver_impl.cpp @@ -7888,7 +7888,8 @@ int ObRawExprResolverImpl::check_internal_function(const ObString &name) bool exist = false; bool is_internal = false; if (OB_FAIL(ret)) { - } else if (ctx_.session_info_->is_inner()) { + } else if (ctx_.session_info_->is_inner() + || is_sys_view(ctx_.view_ref_id_)) { // ignore } else if (FALSE_IT(ObExprOperatorFactory::get_internal_info_by_name(name, exist, is_internal))) { } else if (exist && is_internal) {