Skip to content

Question: is there a way to get the current catalog or database? #1106

@NickCrews

Description

@NickCrews

Hi! I'm working on the datafusion backend for ibis. Specifically, I'm working on PR ibis-project/ibis#11112. Most of the backends for ibis, such as postgres, duckdb, sqlite, etc all have a way of getting the current database (collection of tables) and/or current catalog (collection of databases) such as with SELECT current_database(). Does datafusion have a way of doing this? Either via SQL, or via a python API would work. Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions