patch 4.0

This commit is contained in:
wangzelin.wzl
2022-10-24 10:34:53 +08:00
parent 4ad6e00ec3
commit 93a1074b0c
10533 changed files with 2588271 additions and 2299373 deletions

View File

@ -14,27 +14,32 @@
#include "sql/resolver/ddl/ob_create_index_stmt.h"
#include "share/schema/ob_table_schema.h"
namespace oceanbase {
namespace oceanbase
{
using namespace oceanbase::obrpc;
using namespace oceanbase::common;
namespace sql {
ObCreateIndexStmt::ObCreateIndexStmt(ObIAllocator* name_pool)
: ObPartitionedStmt(name_pool, stmt::T_CREATE_INDEX), create_index_arg_(), table_id_(OB_INVALID_ID)
{}
namespace sql
{
ObCreateIndexStmt::ObCreateIndexStmt(ObIAllocator *name_pool)
: ObPartitionedStmt(name_pool, stmt::T_CREATE_INDEX), create_index_arg_() ,table_id_(OB_INVALID_ID)
{
}
ObCreateIndexStmt::ObCreateIndexStmt()
: ObPartitionedStmt(NULL, stmt::T_CREATE_INDEX), create_index_arg_(), table_id_(OB_INVALID_ID)
{}
{
}
ObCreateIndexStmt::~ObCreateIndexStmt()
{}
{
}
ObCreateIndexArg& ObCreateIndexStmt::get_create_index_arg()
ObCreateIndexArg &ObCreateIndexStmt::get_create_index_arg()
{
return create_index_arg_;
}
int ObCreateIndexStmt::add_sort_column(const ObColumnSortItem& sort_column)
int ObCreateIndexStmt::add_sort_column(const ObColumnSortItem &sort_column)
{
int ret = OB_SUCCESS;
if (OB_USER_MAX_ROWKEY_COLUMN_NUMBER == create_index_arg_.index_columns_.count()) {
@ -42,32 +47,31 @@ int ObCreateIndexStmt::add_sort_column(const ObColumnSortItem& sort_column)
LOG_USER_ERROR(OB_ERR_TOO_MANY_ROWKEY_COLUMNS, OB_USER_MAX_ROWKEY_COLUMN_NUMBER);
} else if (OB_FAIL(create_index_arg_.index_columns_.push_back(sort_column))) {
LOG_WARN("add index column failed", K(ret));
} else {
}
} else {}
return ret;
}
int ObCreateIndexStmt::add_storing_column(const ObString& column_name)
int ObCreateIndexStmt::add_storing_column(const ObString &column_name)
{
return create_index_arg_.store_columns_.push_back(column_name);
}
int ObCreateIndexStmt::add_hidden_storing_column(const ObString& column_name)
int ObCreateIndexStmt::add_hidden_storing_column(const ObString &column_name)
{
return create_index_arg_.hidden_store_columns_.push_back(column_name);
}
void ObCreateIndexStmt::set_compress_method(const ObString& compress_method)
void ObCreateIndexStmt::set_compress_method(const ObString &compress_method)
{
create_index_arg_.index_option_.compress_method_ = compress_method;
}
void ObCreateIndexStmt::set_comment(const ObString& comment)
void ObCreateIndexStmt::set_comment(const ObString &comment)
{
create_index_arg_.index_option_.comment_ = comment;
}
void ObCreateIndexStmt::set_index_name(const ObString& index_name)
void ObCreateIndexStmt::set_index_name(const ObString &index_name)
{
create_index_arg_.index_name_ = index_name;
}