Abyss-lord opened a new pull request, #6461: URL: https://github.com/apache/gravitino/pull/6461
### What changes were proposed in this pull request? 1. Support table format output for Audit command 2. Refactor the output format. ### Why are the changes needed? Fix: #5746 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? local test + ut ```bash gcli metalake list -i --output table +-------------------+ | METALAKE | +-------------------+ | demo | | cli_demo | | demo_metalake | | test_cli_metalake | | tyy | | demo3 | +-------------------+ gcli metalake details -i --output table -m demo_metalake +---------------+-------------+ | METALAKE | COMMENT | +---------------+-------------+ | demo_metalake | new comment | +---------------+-------------+ gcli catalog list -i --output table -m demo_metalake +-------------------+ | CATALOG | +-------------------+ | File | | Hive_catalog | | Iceberg_catalog | | Mysql_catalog | | Test_hive_catalog | +-------------------+ gcli catalog details --name Hive_catalog -i --output table -m demo_metalake +--------------+------------+----------+-------------+ | CATALOG | TYPE | PROVIDER | COMMENT | +--------------+------------+----------+-------------+ | Hive_catalog | RELATIONAL | hive | new comment | +--------------+------------+----------+-------------+ gcli schema list --name Hive_catalog -i --output table -m demo_metalake +---------------------------+ | SCHEMA | +---------------------------+ | convert_example | | default | | empty | | hive_best_performance | | hive_function_test | | hive_spark_diff | | hive_to_spark | | smoke_testccdp_hive | | test_audit | | test_carbondata | | test_drop | | test_gravitino_hive | | test_gravitino_iceberg | | test_hive_convert_example | | test_multiple_data_source | | test_pancx | +---------------------------+ gcli schema details --name Hive_catalog.default -i --output table -m demo_metalake +---------+-----------------------+ | SCHEMA | COMMENT | +---------+-----------------------+ | default | Default Hive database | +---------+-----------------------+ gcli metalake details --output table -m demo_metalake --audit -i +-----------+--------------------------+-----------+--------------------------+ | creator | create_time | modified | modify_time | +-----------+--------------------------+-----------+--------------------------+ | anonymous | 2024-12-04T07:41:18.512Z | anonymous | 2025-01-14T07:56:25.496Z | +-----------+--------------------------+-----------+--------------------------+ gcli catalog details --name Hive_catalog -i --output table -m demo_metalake --audit +-----------+--------------------------+-----------+--------------------------+ | creator | create_time | modified | modify_time | +-----------+--------------------------+-----------+--------------------------+ | anonymous | 2024-12-05T01:20:40.512Z | anonymous | 2024-12-27T02:33:24.968Z | +-----------+--------------------------+-----------+--------------------------+ gcli schema details --name Hive_catalog.default --output table -m demo_metalake --audit -i +---------+-------------+----------+-------------+ | creator | create_time | modified | modify_time | +---------+-------------+----------+-------------+ | public | null | null | null | +---------+-------------+----------+-------------+ ``` -- 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-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org