Merge branch 'column_store'

Co-authored-by: wangt1xiuyi <13547954130@163.com>
Co-authored-by: yangqise7en <877793735@qq.com>
Co-authored-by: Zach41 <zach_41@163.com>
This commit is contained in:
chaser-ch
2023-10-31 15:39:20 +00:00
committed by ob-robot
parent 4057fbc4ae
commit 566e920620
1375 changed files with 239147 additions and 56014 deletions

View File

@ -18,6 +18,9 @@
#include "sql/resolver/ob_stmt.h"
#include "sql/ob_sql_context.h"
#include "lib/json/ob_json_print_utils.h"
#define private public
#include "observer/ob_server.h"
#undef private
#include <fstream>
#include <iterator>
using namespace oceanbase::common;
@ -78,6 +81,7 @@ void TestRawExprCanonicalizer::canon(const char* expr, const char *&canon_expr)
ctx.stmt_ = &stmt;
ObSQLSessionInfo session;
ctx.session_info_ = &session;
OBSERVER.init_version();
ObRawExpr *raw_expr = NULL;
OK(ObRawExprUtils::make_raw_expr_from_str(expr_str, strlen(expr_str), ctx, raw_expr, columns,
sys_vars, &sub_query_info, aggr_exprs ,win_exprs, udf_info));

View File

@ -19,6 +19,9 @@
#include "lib/oblog/ob_log.h"
#include "sql/resolver/expr/ob_raw_expr_util.h"
#include "sql/engine/expr/ob_expr_operator.h"
#define private public
#include "observer/ob_server.h"
#undef private
using namespace oceanbase::sql;
using namespace oceanbase::common;
@ -82,6 +85,7 @@ TEST_F(TestRawExprToStr, basic)
ctx.is_extract_param_type_ = false;
ObSQLSessionInfo session;
ctx.session_info_ = &session;
OBSERVER.init_version();
// const int64_t buf_len = 1024;
//int64_t pos = 0;

View File

@ -20,6 +20,9 @@
#include "lib/json/ob_json_print_utils.h"
#include "share/ob_cluster_version.h"
#include <fstream>
#define private public
#include "observer/ob_server.h"
#undef private
using namespace oceanbase::common;
using namespace oceanbase::sql;
using namespace oceanbase::lib;
@ -79,6 +82,7 @@ void TestRawExprResolver::resolve(const char* expr, const char *&json_expr)
ObSQLSessionInfo session;
ctx.session_info_ = &session;
ObRawExpr *raw_expr = NULL;
OBSERVER.init_version();
OK(ObRawExprUtils::make_raw_expr_from_str(expr_str, strlen(expr_str), ctx, raw_expr, columns,
sys_vars, &sub_query_info, aggr_exprs , win_exprs, udf_info));
_OB_LOG(DEBUG, "================================================================");

View File

@ -19,6 +19,9 @@
#include "lib/oblog/ob_log.h"
#include "sql/resolver/expr/ob_raw_expr_util.h"
#include "sql/engine/expr/ob_expr_operator.h"
#define private public
#include "observer/ob_server.h"
#undef private
using namespace oceanbase::sql;
using namespace oceanbase::common;
@ -74,6 +77,7 @@ TEST_F(TestRawExprToStr, basic)
ctx.is_extract_param_type_ = false;
ObSQLSessionInfo session;
ctx.session_info_ = &session;
OBSERVER.init_version();
const int64_t buf_len = 1024;
int64_t pos = 0;