forked from apache/gravitino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[apache#6493] feat(CLI): Support table format output for Schema and T…
…able command (apache#6495) ### What changes were proposed in this pull request? Support table format output for Schema and Table command. ### Why are the changes needed? Fix: apache#6493 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? local test. ```bash gcli schema list -m demo_metalake --name Hive_catalog --output table -i +---------------------------+ | Schema | +---------------------------+ | convert_example | | default | | hive_best_performance | | test_hive_convert_example | | test_multiple_data_source | +---------------------------+ gcli schema details -m demo_metalake --name Hive_catalog.default --output table -i +---------+-----------------------+ | Schema | Comment | +---------+-----------------------+ | default | Default Hive database | +---------+-----------------------+ gcli table list -m demo_metalake --name Hive_catalog.default -i --output table +---------------------------------------+ | Table | +---------------------------------------+ | test_create_txt_tbl_without_delimited | | test_jinjia_tbl1 | | test_jinjia_tbl2 | | test | | test1 | | example_table | | example_table2 | +---------------------------------------+ gcli table details -m demo_metalake --name Hive_catalog.default.test1 -i --output table +----------+---------+---------------+----------+---------+ | Name | Type | AutoIncrement | Nullable | Comment | +----------+---------+---------------+----------+---------+ | id | integer | false | true | N/A | | name | string | false | true | N/A | | standard | long | false | true | N/A | | dt | string | false | true | N/A | +----------+---------+---------------+----------+---------+ ```
- Loading branch information
1 parent
ee296fa
commit fb3d900
Showing
7 changed files
with
290 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.