Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion tests/integ/scala/test_session_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,16 @@ def test_large_local_relation_no_commit(session):
reason="transactions not supported by local testing.",
run=False,
)
def test_create_temp_table_no_commit(session):
@pytest.mark.skipif(
IS_IN_STORED_PROC, reason="creating new session is not allowed in stored proc"
)
def test_create_temp_table_no_commit(
db_parameters,
sql_simplifier_enabled,
):
session = Session.builder.configs(db_parameters).create()
session.sql_simplifier_enabled = sql_simplifier_enabled

# cache_result creates a temp table
test_table = Utils.random_name_for_temp_object(TempObjectType.TABLE)
try:
Expand All @@ -291,3 +300,4 @@ def test_create_temp_table_no_commit(session):
assert not Utils.is_active_transaction(session)
finally:
Utils.drop_table(session, test_table)
session.close()
Loading