fix bug of load data local using direct-load

This commit is contained in:
obdev
2024-03-04 02:45:15 +00:00
committed by ob-robot
parent f457e4edea
commit 45b33b4aa1

View File

@ -725,6 +725,10 @@ int ObLoadDataResolver::resolve_filename(ObLoadDataStmt *load_stmt, ParseNode *n
if (OB_NOT_NULL(p = file_name.find(','))) {
ret = OB_NOT_SUPPORTED;
LOG_USER_ERROR(OB_NOT_SUPPORTED, "load multi files not supported");
} else if (OB_FAIL(ob_write_string(*allocator_, file_name, cstyle_file_name, true))) {
LOG_WARN("fail to copy string", K(ret));
} else if (OB_FAIL(load_args.file_iter_.add_files(&cstyle_file_name))) {
LOG_WARN("fail to add files", K(ret));
} else {
load_args.file_name_ = file_name;
}