Skip to content

Shouldn't DuckDBDatabaseMetaData#getTables also returns views in the database #620

Closed

Description

@siggemannen

As title, right now only tables seems to be returned, even though supported table types are tables + views.
Other jdbc providers return both.
I can probably create a PR, but the changes will break backward compatibility.

Same issue probably exists when fetching columns, it should probably use duckdb_columns().

Activity

  1. staticlibs commented on Mar 25, 2026

    @staticlibs
    Member

    Hi, thanks for the report! I cannot answer this quickly. If there are supporting info, that views inclusion is reasonable - then the PR implementing that will be appreciated!

    If we are in situations when "other DBs doing that" (especially Postgres), than backwards compatibility will be less important.

  2. siggemannen commented on Apr 9, 2026

    @siggemannen
    ContributorAuthor

    Added PR #639

  3. siggemannen commented on Apr 16, 2026

    @siggemannen
    ContributorAuthor

    Closing, works fine for me now :)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions