Skip to content

Commit

Permalink
remove encode and then decode in rest util
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant Singh committed Nov 15, 2024
1 parent e6a3e71 commit 7bfa42d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public Response loadNamespaceMetadata(
}

private static Namespace decodeNamespace(String namespace) {
return RESTUtil.decodeNamespace(URLEncoder.encode(namespace, Charset.defaultCharset()));
return RESTUtil.decodeNamespace(namespace);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public void testIcebergListNamespacesNestedNotFound() throws IOException {
sessionCatalog.listNamespaces(
sessionContext, Namespace.of("top_level", "whoops")))
.isInstanceOf(NoSuchNamespaceException.class)
.hasMessage("Namespace does not exist: top_level%1Fwhoops");
.hasMessage("Namespace does not exist: top_level.whoops");
}
}

Expand Down

0 comments on commit 7bfa42d

Please sign in to comment.