You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# df.createOrReplaceTempView() throws "[Local Testing] Mocking SnowflakePlan Rename is not supported" when used against the Snowflake local_testing session
428
+
# since we cant trace any queries from the Snowpark library anyway, we just suppress this and verify the cleanup queries issued by our EngineAdapter
# the Snowflake library generates "CREATE TEMPORARY VIEW" from a direct DataFrame call
443
-
# which doesnt pass through our EngineAdapter so we cant capture it
444
-
spy.assert_called()
445
-
assert"__temp_foo_e6wjkjj6"inspy.call_args[0][0]
446
-
447
446
# verify that DROP VIEW is called instead of DROP TABLE
448
447
assertto_sql_calls(adapter) == [
449
448
'CREATE OR REPLACE TABLE "foo" AS SELECT CAST("ID" AS INT) AS "ID", CAST("NAME" AS VARCHAR) AS "NAME" FROM (SELECT CAST("ID" AS INT) AS "ID", CAST("NAME" AS VARCHAR) AS "NAME" FROM "__temp_foo_e6wjkjj6") AS "_subquery"',
0 commit comments