Skip to content

Commit

Permalink
[BugFix] Avoid reporting file not found errors during the BE upgrade …
Browse files Browse the repository at this point in the history
…process (#54560)

Signed-off-by: Youngwb <[email protected]>
(cherry picked from commit 2bce91f)
  • Loading branch information
Youngwb authored and mergify[bot] committed Dec 31, 2024
1 parent 8f16a92 commit 8de5f1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion be/src/connector/hive_connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,9 @@ Status HiveDataSource::_init_scanner(RuntimeState* state) {
native_file_path = file_path.native();
}
if (native_file_path.empty()) {
native_file_path = _hive_table->get_base_path() + scan_range.relative_path;
bool start_with_slash = !scan_range.relative_path.empty() && scan_range.relative_path.at(0) == '/';
native_file_path = _hive_table->get_base_path() +
(start_with_slash ? scan_range.relative_path : "/" + scan_range.relative_path);
}

const auto& hdfs_scan_node = _provider->_hdfs_scan_node;
Expand Down

0 comments on commit 8de5f1e

Please sign in to comment.