Skip to content

Do not throw error on list_tables, list_namespaces#3477

Open
rambleraptor wants to merge 1 commit into
apache:mainfrom
rambleraptor:rest-list-unsupported-returns-empty
Open

Do not throw error on list_tables, list_namespaces#3477
rambleraptor wants to merge 1 commit into
apache:mainfrom
rambleraptor:rest-list-unsupported-returns-empty

Conversation

@rambleraptor

Copy link
Copy Markdown
Collaborator

Rationale for this change

The Java (and soon Go) implementations of Iceberg specify that if list_tables / list_namespaces aren't supported, they should return an empty array, not throw an error.

I'm not a huge fan of this personally, but I think it's best to match the reference implementation.

List Tables on Java
List Namespaces on Java

Are these changes tested?

Test included.

Are there any user-facing changes?

@rambleraptor rambleraptor requested a review from Fokko June 10, 2026 22:10

@ebyhr ebyhr 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.

I'm not a fan of this approach either, but I agree with following the Java implementation. I've noticed that list_views already employs this strategy.

@rambleraptor

Copy link
Copy Markdown
Collaborator Author

Error -> empty array isn't a breaking change.
Empty array -> error is and I don't think the community would be supportive of making a major release to fix that.

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