Skip to content

Commit

Permalink
fix datasource error (#680)
Browse files Browse the repository at this point in the history
Co-authored-by: “v_kkhuang” <“[email protected]”>
  • Loading branch information
v-kkhuang and “v_kkhuang” authored Dec 18, 2024
1 parent 84df21e commit 6d23d7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public String getTableLocation(MetadataQueryParam queryParam) {

private int getTableFileNum(String tableLocation) throws IOException {
int tableFileNum = 0;
if (StringUtils.isNotBlank(tableLocation)) {
if (StringUtils.isNotBlank(tableLocation) && getRootHdfs().exists(new Path(tableLocation))) {
FileStatus tableFile = getFileStatus(tableLocation);
tableFileNum = (int) getRootHdfs().getContentSummary(tableFile.getPath()).getFileCount();
}
Expand Down

0 comments on commit 6d23d7c

Please sign in to comment.