Skip to content

rust: surface unrelated lake catalog errors instead of empty results #964

Closed

Description

@athvin

Evidence

is_missing_table returns true for any DuckDB Catalog Error; its readers then return successful empty pages or counts. A missing function or another catalog fault can therefore masquerade as no data. Source.

Change

Recognize only the expected absent-table condition for the specific optional relation; propagate other catalog failures.

Done when

  • An absent optional relation still returns the documented empty result.
  • An unrelated catalog error is returned as an error from representative read endpoints.

Additional affected path

er-cli/src/lib.rs:3694 has the same broad Catalog Error predicate. Its callers at lines 441, 2016, 2849, 2891, 3750, and 4556 can likewise turn an unrelated catalog failure into an empty or zero result. Apply the fix and regression coverage in both er-server and er-cli.

Activity

  1. added
    code-cleanup
    on Nov 9, 2026
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

    code-cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions