Skip to content

Commit

Permalink
[#6145] improve(CLI): Refactor table commands in Gavitino CLI
Browse files Browse the repository at this point in the history
fix some errors.
  • Loading branch information
Abyss-lord committed Jan 9, 2025
1 parent f64a9b6 commit fa2a578
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class ModelCommandHandler extends CommandHandler {
private final String metalake;
private final String catalog;
private final String schema;
private final String model;
private String model;

/**
* Constructs a {@link ModelCommandHandler} instance.
Expand All @@ -58,7 +58,6 @@ public ModelCommandHandler(
this.metalake = name.getMetalakeName();
this.catalog = name.getCatalogName();
this.schema = name.getSchemaName();
this.model = name.getModelName();
}

/** Handles the command execution logic based on the provided command. */
Expand All @@ -78,6 +77,7 @@ protected void handle() {
return;
}

this.model = name.getModelName();
if (model == null) missingEntities.add(CommandEntities.MODEL);
checkEntities(missingEntities);

Expand Down

0 comments on commit fa2a578

Please sign in to comment.