justinmclean commented on issue #5277: URL: https://github.com/apache/gravitino/issues/5277#issuecomment-2442609337
Thanks for offering to help. 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 say`ListIndexes.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. -- 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]
