File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
metacat-main/src/main/java/com/netflix/metacat/main/api/v1 Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -485,9 +485,13 @@ public CatalogDto getCatalog(
485
485
@ Parameter (description = "Whether to include user metadata information to the response" )
486
486
@ RequestParam (name = "includeUserMetadata" , defaultValue = "true" ) final boolean includeUserMetadata ) {
487
487
final QualifiedName name = this .requestWrapper .qualifyName (() -> QualifiedName .ofCatalog (catalogName ));
488
+ final boolean includeDatabaseNamesEnable = includeDatabaseNames == null
489
+ ? config .listDatabaseNameByDefaultOnGetCatalog () : includeDatabaseNames ;
490
+
488
491
return this .requestWrapper .processRequest (
489
492
name ,
490
493
"getCatalog" ,
494
+ Collections .singletonMap ("includeDatabaseNames" , String .valueOf (includeDatabaseNamesEnable )),
491
495
() -> this .catalogService .get (name , GetCatalogServiceParameters .builder ()
492
496
.includeDatabaseNames (includeDatabaseNames == null
493
497
? config .listDatabaseNameByDefaultOnGetCatalog () : includeDatabaseNames )
You can’t perform that action at this time.
0 commit comments