Skip to content

refactor(catalog/glue): remove database_type parameter in Glue catalog operations - #535

Merged
zeroshade merged 3 commits into
apache:mainfrom
xixipi-lining:feat-glue-update
Aug 18, 2025
Merged

zeroshade merged 3 commits into
apache:mainfrom
xixipi-lining:feat-glue-update

Conversation

@xixipi-lining

Copy link
Copy Markdown
Contributor

Description

This PR removes the requirement for the database_type parameter in both ListNamespaces and CreateNamespace operations for the Glue catalog to align with the Java and Python versions of Apache Iceberg.

Background

After reviewing the Java and Python implementations of Apache Iceberg, we found that neither version uses the database_type parameter in their Glue catalog operations. The Go implementation was unnecessarily handling this parameter, which was inconsistent with the reference implementations.

This inconsistency caused a practical issue: namespaces created using pyiceberg could not be listed in the Go implementation because pyiceberg doesn't set the database_type parameter, while the Go version required it for filtering.

Changes

  • ListNamespaces: Removed filtering logic that checked database_type in database parameters
  • CreateNamespace: Removed the database_type parameter from database creation
  • Updated to use AWS SDK paginator for improved reliability

@xixipi-lining

Copy link
Copy Markdown
Contributor Author

Implementation of list_namespaces in python and java.

@xixipi-lining xixipi-lining changed the title feat(catalog/glue): remove database_type parameter in Glue catalog operations refactor(catalog/glue): remove database_type parameter in Glue catalog operations Aug 18, 2025

@zeroshade zeroshade left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems weird to me, but matching with the other implementations is a good idea

@zeroshade
zeroshade merged commit d32d89f into apache:main Aug 18, 2025
@xixipi-lining

Copy link
Copy Markdown
Contributor Author

I also feel pretty wired—I checked PyIceberg’s entire file history for the Glue Catalog and couldn’t find the database_type parameter anywhere.

@xixipi-lining
xixipi-lining deleted the feat-glue-update branch August 19, 2025 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants