I am looking to create a temporary view on Snowflake using the Snowpark API (version 1.6.0
). I have created a DataFrame
and was attempting to use the createOrReplaceTempView()
function as follows:
// code to create dataframe here
finalDF.createOrReplaceTempView(outputTableName)
When I run this code, I see the following error:
net.snowflake.client.jdbc.SnowflakeSQLException: Stored procedure execution error: Unsupported statement type 'temporary VIEW'.
On a worksheet within my Snowflake account, I am able to create the same table successfully through raw SQL.
Any ideas why I'm prevented from doing the same through Snowpark?