Skip to content

Glue catalog: use comment for table and namespace descriptions, like the Hive catalog #4628

Backlog

Description

@prateek11rai

Note

🤖 claude-opus-5-5 on behalf of Prateek

Feature Request / Improvement

Setting a table or namespace description with the comment property works in PyIceberg's Hive catalog but is quietly ignored by the Glue catalog. There are three gaps:

1. Alignment. Hive uses comment as the description for namespaces (hive.py#L255) and tables (table properties become HMS parameters, so comment is the Hive table comment). Glue uses Description instead (tables, namespaces) and stores a comment as a plain Glue parameter. Other implementations use comment in Glue: iceberg-go made this exact change in aa27f3f ("use canonical comment property for descriptions", 2026-07-24), keeping Description as a legacy key, and Java's Glue catalog uses comment at both levels (GLUE_DESCRIPTION_KEY). comment is also Java's TableProperties.COMMENT. The table spec itself defines no description, so this is a convention rather than a spec rule.

2. Tests. test_create_namespace_with_comment_and_location creates a namespace with "comment": "this is a test description", but only checks that comment round-trips through load. The value lands in the Glue parameters and the Glue description stays empty, so the test passes without covering it. No Glue test checks a description set with comment.

3. Docs. Neither comment nor Description is documented, so users have no way to know which key sets a description in which catalog.

Current behaviour (moto, main):

Set on create Glue table description Glue database description
comment: C not set not set (C stored as a parameter)
Description: D D D
both D D

Proposal:

  • In the Glue catalog, use comment as the description for tables and namespaces, and keep Description working as a legacy key. When both are set, comment wins, as in iceberg-go. Deprecating Description would be a separate decision for the team.
  • Make the Glue tests assert the Glue description itself.
  • Document comment as the way to set a table or namespace description.

Activity

  1. prateek11rai commented on Dec 5, 2026

    @prateek11rai
    ContributorAuthor

    Note

    🤖 claude-opus-5-5 on behalf of Prateek

    I've opened #4629 for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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