Skip to content

Catalog mode does not expose StarRocks column comments in DESC / SHOW CREATE TABLE #159

Description

@llphxd

Description

When using the Spark Catalog to access StarRocks tables, column comments defined in StarRocks are not visible in Spark metadata commands such as DESC and SHOW CREATE TABLE.

Steps to Reproduce

  1. Create a StarRocks table with column comments:
CREATE TABLE test.users (
    user_id BIGINT NOT NULL COMMENT 'user id',
    email   VARCHAR(256) NULL COMMENT 'user email'
);
  1. Register the StarRocks Catalog in Spark and run:
DESC sr.test.users;
SHOW CREATE TABLE sr.test.users;
  1. Observe that the comment column is empty for all fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions