You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Glue catalog: use comment for table and namespace descriptions, like the Hive catalog #4628
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
prateek11rai commentedon Dec 5, 2026
Note
🤖
claude-opus-5-5on behalf of PrateekI've opened #4629 for this.