Disable direct-loading to a view table

This commit is contained in:
leftgeek 2023-05-17 13:16:59 +00:00 committed by ob-robot
parent e8ce6e4946
commit 49aa731024

View File

@ -172,6 +172,11 @@ int ObTableLoadService::check_support_direct_load(uint64_t table_id)
ret = OB_NOT_SUPPORTED;
LOG_WARN("direct-load does not support oracle temporary table", KR(ret));
}
// check if it is a view
else if (table_schema->is_view_table()) {
ret = OB_NOT_SUPPORTED;
LOG_WARN("direct-load does not support view table", KR(ret));
}
// check if exists generated column
else if (OB_UNLIKELY(table_schema->has_generated_column())) {
ret = OB_NOT_SUPPORTED;