You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "mchades (via GitHub)" <gi...@apache.org> on 2025/06/01 08:20:46 UTC
Re: [PR] [#6860] feat: add file viewer support for filesets [gravitino]
mchades commented on code in PR #7215:
URL: https://github.com/apache/gravitino/pull/7215#discussion_r2118867149
##########
catalogs/catalog-hadoop/src/test/java/org/apache/gravitino/catalog/hadoop/integration/test/HadoopCatalogIT.java:
##########
@@ -151,6 +170,38 @@ private void dropSchema() {
Assertions.assertFalse(catalog.asSchemas().schemaExists(schemaName));
}
+ private String getFileInfos(NameIdentifier filesetIdent, String subPath, String locationName)
+ throws IOException {
+ String targetUrl =
+ "api/metalakes/"
+ + metalakeName
+ + "/catalogs/"
+ + catalogName
+ + "/schemas/"
+ + schemaName
+ + "/filesets/"
+ + filesetIdent.name()
+ + "/files";
+ Map<String, String> query = new HashMap<>();
+ if (!StringUtils.isBlank(subPath)) {
+ query.put("subPath", subPath);
+ }
+ if (!StringUtils.isBlank(locationName)) {
+ query.put("locationName", locationName);
+ }
+
+ FileInfoListResponse resp =
+ httpClient.get(
Review Comment:
Sorry, we can't use `HTTPClient` here. Instead, we should use `CloseableHttpClient` because we need to assert the raw response body string.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org