StarRocks / starrocks

StarRocks, a Linux Foundation project, is a next-generation sub-second MPP OLAP database for full analytics scenarios, including multi-dimensional analytics, real-time analytics, and ad-hoc queries.
https://starrocks.io
Apache License 2.0
8.68k stars 1.76k forks source link

when desc table-name, the result can not show the comment of field ,can we make an optimization? #50076

Open lihuafengzi opened 1 month ago

lihuafengzi commented 1 month ago

when desc table-name, the result can not show the comment of field ,can we make an optimization?

image

just show create table can we show the comments, but it's difficult to align left.

image

danielhumanmod commented 1 week ago

Hi @lihuafengzi, I can take a look and support this feature

danielhumanmod commented 1 week ago

Hi @LiShuMing , I notice you participate in this PR as well, I have a topic want to discuss with you ( Or can you help me to invite the right person StarRocks community to talk about this decision?)

Context

Currently StarRocks doesn't support comment column in DESC statement, but the comment info can be queried with SHOW CREATE TABLE ....

Investigation on other OLAP system

Some two-cent idea

Based on these reasons, it might be best not to add comments directly to the DESC output in StarRocks to keep DESC output focus on the essential information like name, type etc.

Instead, our users might consider to use commands like SHOW CREATE TABLE or SHOW COLUMNS for a more comprehensive view of the table, including comments.