modify error message about OB_ROWKEY_ORDER_ERROR

This commit is contained in:
medcll
2024-11-26 14:15:15 +00:00
committed by ob-robot
parent 2202128579
commit ec7e1bbcf8
4 changed files with 13 additions and 7 deletions

View File

@ -2309,6 +2309,12 @@ int ObLoadDataDirectImpl::execute(ObExecContext &ctx, ObLoadDataStmt &load_stmt)
}
}
if (OB_FAIL(ret)) {
if (!execute_param_.need_sort_ && OB_ROWKEY_ORDER_ERROR == ret) {
LOG_USER_ERROR(OB_ROWKEY_ORDER_ERROR, "The data to be imported is unordered, please set need_sort to true");
}
}
direct_loader_.destroy();
if (OB_NOT_NULL(session)) {
session->reset_cur_phy_plan_to_null();