Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,10 @@ public long fetchRowCount() {
}

private List<Column> initPartitionColumns(List<Column> schema) {
List<String> partitionKeys = remoteTable.getPartitionKeys().stream().map(FieldSchema::getName)
// get table from remote, do not use `remoteTable` directly,
// because here we need to get schema from latest table info.
Table newTable = ((HMSExternalCatalog) catalog).getClient().getTable(dbName, name);
List<String> partitionKeys = newTable.getPartitionKeys().stream().map(FieldSchema::getName)
.collect(Collectors.toList());
List<Column> partitionColumns = Lists.newArrayListWithCapacity(partitionKeys.size());
for (String partitionKey : partitionKeys) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ public List<String> listDatabaseNames() {
try {
return executionAuthenticator.execute(() -> listNestedNamespaces(getNamespace()));
} catch (Exception e) {
LOG.warn("failed to list database names in catalog {}, root cause: {}",
dorisCatalog.getName(), Util.getRootCauseMessage(e), e);
throw new RuntimeException("Failed to list database names, error message is:" + e.getMessage(), e);
}
}
Expand Down
Loading