You are viewing documentation about an older version (1.1.0). View latest version

snowflake.snowpark.DataFrame.createOrReplaceView¶

DataFrame.createOrReplaceView(name: str | Iterable[str], *, statement_params: Dict[str, str] | None = None) → List[Row][source]¶

Creates a view that captures the computation expressed by this DataFrame.

For name, you can include the database and schema name (i.e. specify a fully-qualified name). If no database name or schema name are specified, the view will be created in the current database or schema.

name must be a valid Snowflake identifier.

Parameters:
  • name – The name of the view to create or replace. Can be a list of strings that specifies the database name, schema name, and view name.

  • statement_params – Dictionary of statement level parameters to be set while executing this action.