You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
justinmclean
changed the title
[Improvement] Display index infromation for table in the Gravitino CLI
[Improvement] Display index infromation for tables in the Gravitino CLI
Oct 27, 2024
To get started on this, have a look at the commands in clients/cli/src/main/java/org/apache/gravitino/cli/commands/, ListColumns.java would be a good one to copy, create a new command called sayListIndexes.java. It would call the index() method from loadTable() to get information about the table's indexes, and print out the name and type of each index.
Next, add an index option to GravitinnoOptions.java and modify handleTableCommand in GravitionoCommandLine.java to create the new command when passed the new option and the details command. Compile and test the command with the Gravitino playground. I would expect the command to be like this: gcli table details --metalake metalake_demo --name catalog_postgres.hr.salaries --index
Finally, update the documentation in docs/cli.md adding the command to it.
What would you like to be improved?
Have a command to display index information for Tables.
How should we improve?
This can be done by:
index
on the Table object.--index
GravitinoCommandLine
The text was updated successfully, but these errors were encountered: