[FEAT MERGE] materialized view

This commit is contained in:
obdev
2024-02-07 20:31:13 +00:00
committed by ob-robot
parent 39fae3b529
commit c2511b580f
257 changed files with 35698 additions and 4335 deletions

View File

@ -482,6 +482,17 @@ int ObSqlSchemaGuard::get_table_schema(uint64_t table_id,
return ret;
}
int ObSqlSchemaGuard::get_database_schema(const uint64_t database_id,
const ObDatabaseSchema *&database_schema)
{
int ret = OB_SUCCESS;
database_schema = NULL;
const uint64_t tenant_id = MTL_ID();
OV (OB_NOT_NULL(schema_guard_));
OZ (schema_guard_->get_database_schema(tenant_id, database_id, database_schema), tenant_id, database_id);
return ret;
}
int ObSqlSchemaGuard::get_column_schema(uint64_t table_id, const ObString &column_name,
const ObColumnSchemaV2 *&column_schema,
bool is_link /* = false */) const
@ -544,6 +555,16 @@ int ObSqlSchemaGuard::get_can_read_index_array(uint64_t table_id,
return ret;
}
int ObSqlSchemaGuard::get_table_mlog_schema(const uint64_t table_id,
const ObTableSchema *&mlog_schema)
{
int ret = OB_SUCCESS;
const uint64_t tenant_id = MTL_ID();
OV (OB_NOT_NULL(schema_guard_));
OZ (schema_guard_->get_table_mlog_schema(tenant_id, table_id, mlog_schema));
return ret;
}
int ObSqlSchemaGuard::get_link_table_schema(uint64_t table_id,
const ObTableSchema *&table_schema) const
{