snowflake.snowpark.catalog.Catalog.table_exists¶

Catalog.table_exists(table: Union[str, Table], *, database: Optional[Union[str, DatabaseModel]] = None, schema: Optional[Union[str, ModelSchemaModel]] = None) → bool[source]¶

Check if the given table exists in the given database and schema. If database or schema are not provided, check if the table exists in the current database and schema.

Parameters:
  • table – table name or Table object.

  • database – database name or Database object. Defaults to None.

  • schema – schema name or Schema object. Defaults to None.