fix load data ignore rows bug

This commit is contained in:
wjhh2008
2024-07-23 16:51:55 +00:00
committed by ob-robot
parent 690133d21b
commit 45d8f8711c

View File

@ -1955,8 +1955,10 @@ int ObLoadDataSPImpl::execute(ObExecContext &ctx, ObLoadDataStmt &load_stmt)
while (OB_SUCC(ret)
&& !box.read_cursor.is_end_file()
&& box.data_trimer.get_lines_count() < box.ignore_rows) {
box.temp_handle->data_buffer->reset();
OZ (next_file_buffer(ctx, box, box.temp_handle,
box.ignore_rows - box.data_trimer.get_lines_count()));
OZ (ObLoadDataUtils::check_session_status(*ctx.get_my_session()));
LOG_DEBUG("LOAD DATA ignore rows", K(box.ignore_rows), K(box.data_trimer.get_lines_count()));
}