HIVE-29259: Remove label from text based output for desc catalog
What changes were proposed in this pull request?
Please check the discussion in HIVE-29259
Why are the changes needed?
To have to correct output format for desc catalog as its there for desc database
Does this PR introduce any user-facing change?
Yes, User will observe different table output format Older:
0: jdbc:hive2://127.0.0.1:10000/default> desc catalog hive;
+------------------+---------------------------------------------------------+------------+
| cat_name | comment | location |
+------------------+-------------------------------------------------------- +-------------+
| Catalog Name | hive | NULL |
| Comment | Default catalog for Hive | NULL |
| Location | hdfs://127.0.0.1:8028/user/hive/warehouse/hiveicetest | NULL |
+------------------+---------------------------------------------------------+------------+
New:
0: jdbc:hive2://127.0.0.1:10000/default> desc catalog hive;
+------------------+-------------------------------------------------------+-------------------------------------------------------------+
| cat_name | comment | location |
+------------------+-------------------------------------------------------+-------------------------------------------------------------+
| hive | Default catalog for Hive | hdfs://127.0.0.1:8028/user/hive/warehouse/hiveicetest |
+------------------+-------------------------------------------------------+-------------------------------------------------------------+
How was this patch tested?
On local Setup and ran catalog.q
After fix when hive.ddl.output.format = text:
After fix when hive.ddl.output.format = json:
CC @zhangbutao
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
I merged this PR since it already had two approvals. Thanks for the PR @Aggarwal-Raghav and @deniskuzZ @zhangbutao for the reviews!