Skip to content

Commit aee1228

Browse files
yingjianwu98Yingjian Wu
andauthored
add include databases name tag (#662)
Co-authored-by: Yingjian Wu <[email protected]>
1 parent 5626ce7 commit aee1228

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

metacat-main/src/main/java/com/netflix/metacat/main/api/v1/MetacatController.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,13 @@ public CatalogDto getCatalog(
485485
@Parameter(description = "Whether to include user metadata information to the response")
486486
@RequestParam(name = "includeUserMetadata", defaultValue = "true") final boolean includeUserMetadata) {
487487
final QualifiedName name = this.requestWrapper.qualifyName(() -> QualifiedName.ofCatalog(catalogName));
488+
final boolean includeDatabaseNamesEnable = includeDatabaseNames == null
489+
? config.listDatabaseNameByDefaultOnGetCatalog() : includeDatabaseNames;
490+
488491
return this.requestWrapper.processRequest(
489492
name,
490493
"getCatalog",
494+
Collections.singletonMap("includeDatabaseNames", String.valueOf(includeDatabaseNamesEnable)),
491495
() -> this.catalogService.get(name, GetCatalogServiceParameters.builder()
492496
.includeDatabaseNames(includeDatabaseNames == null
493497
? config.listDatabaseNameByDefaultOnGetCatalog() : includeDatabaseNames)

0 commit comments

Comments
 (0)