Skip to content

bug: NoopCatalog should return False, not throw error#3284

Merged
geruh merged 1 commit intoapache:mainfrom
rambleraptor:supports-server-side-planning
Apr 25, 2026
Merged

bug: NoopCatalog should return False, not throw error#3284
geruh merged 1 commit intoapache:mainfrom
rambleraptor:supports-server-side-planning

Conversation

@rambleraptor
Copy link
Copy Markdown
Contributor

@rambleraptor rambleraptor commented Apr 24, 2026

Rationale for this change

This is a little niche.

StaticTable uses NoopCatalog under the hood. If you attempt to call plan_files, it'll try to call NoopCatalog.should_use_server_side_planning ...which immediately throws an error.

Intuitively, this fix should make sense. Why would I throw an error when I can just return False? NoopCatalog does not support server side planning!

Are these changes tested?

Tests should still pass.

Are there any user-facing changes?

Copy link
Copy Markdown
Member

@geruh geruh left a comment

Choose a reason for hiding this comment

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

LGTM! this is is part of the intentions behind #2982

@geruh geruh merged commit 0677211 into apache:main Apr 25, 2026
15 checks passed
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.

3 participants