skip listing file when no wildcard exists in oss path

This commit is contained in:
obdev
2024-07-17 10:52:52 +00:00
committed by ob-robot
parent a4b1d40315
commit 1fc6fd5cc2

View File

@ -694,6 +694,10 @@ int ObLoadDataResolver::resolve_filename(ObLoadDataStmt *load_stmt, ParseNode *n
} else if (OB_FAIL(databuff_printf(path, MAX_PATH_SIZE, path_len, "%.*s",
dir_path.length(), dir_path.ptr()))) {
LOG_WARN("fail to fill path", K(ret), K(path_len));
} else if (!exist_wildcard(pattern)) {
if (OB_FAIL(file_list.push_back(pattern))) {
LOG_WARN("fail to push back", K(ret));
}
} else if (OB_FAIL(adapter.list_files(ObString(path_len, path), &load_args.access_info_, op))) {
LOG_WARN("fail to list files", K(ret));
}