Skip to content

Commit

Permalink
Return FileIO properties for all LoadTableResponse endpoints (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjo2144 committed Dec 18, 2023
1 parent fe7df35 commit b1cbba1
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ public RESTServerCatalogAdapter(CatalogContext catalogContext) {
public <T extends RESTResponse> T handleRequest(Route route, Map<String, String> vars, Object body, Class<T> responseType) {
T restResponse = super.handleRequest(route, vars, body, responseType);

if (route == Route.LOAD_TABLE) {
LoadTableResponse loadTableResponse = (LoadTableResponse) restResponse;

if (restResponse instanceof LoadTableResponse loadTableResponse) {
if (PropertyUtil.propertyAsBoolean(catalogContext.configuration(), INCLUDE_CREDENTIALS, false)) {
applyCredentials(catalogContext.configuration(), loadTableResponse.config());
}
Expand Down

0 comments on commit b1cbba1

Please sign in to comment.