justinmclean commented on code in PR #6573:
URL: https://github.com/apache/gravitino/pull/6573#discussion_r1976544253
##########
clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListFilesetProperties.java:
##########
@@ -60,27 +60,28 @@ public ListFilesetProperties(
@Override
public void handle() {
Fileset gFileset = null;
- NameIdentifier name = null;
+
try {
- name = NameIdentifier.of(schema, fileset);
- } catch (Exception exp) {
- exitWithError("Invalid schema or fileset name: " + exp.getMessage());
- return;
- }
- try (GravitinoClient client = buildClient(metalake)) {
- gFileset =
client.loadCatalog(catalog).asFilesetCatalog().loadFileset(name);
+ NameIdentifier name = NameIdentifier.of(schema, fileset);
+
+ try (GravitinoClient client = buildClient(metalake)) {
Review Comment:
as I mentioned before that may close the client before we can make other
needed calls
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]