Skip to content

feat: Ability to Distinguish between Table and Views #8382

@sarsasid

Description

@sarsasid

Is your feature request related to a problem?

I see that we have an option to find Tables using

con.list_tables() method, but in many DBs Views are also considered as tables, as in INFORMATION_SCHEMA most DB's list Views as well

If there is a way to add a param to backend to remove Views that would be great

Describe the solution you'd like

Add a default param table_types=[] to con.list_tables() Function

Suggesting as table_types, as some DB will have different other types as well and will be flexible for users to specify table type

In all DB's logic add a condition,
if table_types:

  • SQL Server, add filter table_type IN ( ','.join(table_type) )
  • Postgres, add filter table_type IN ( ','.join(table_type) )
  • BigQuery, add filter table_type IN ( ','.join(table_type) )
    etc

What version of ibis are you running?

8.0.0

What backend(s) are you using, if any?

SQL Server

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    ddlIssues related to creating or altering data definitionsfeatureFeatures or general enhancements

    Type

    No type

    Projects

    Status

    cooking

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions