Skip to content

Commit 6f5b111

Browse files
committed
draft memory/lag issues$
1 parent 7b60bb8 commit 6f5b111

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

tests/conftest.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def pytest_collection_modifyitems(session, config, items):
6767

6868

6969
@pytest.fixture(
70-
scope="session",
70+
scope="module",
7171
autouse=True,
7272
)
7373
def spark_session(pytestconfig, tmpdir_factory):
@@ -80,7 +80,6 @@ def spark_session(pytestconfig, tmpdir_factory):
8080
print("!! Creating spark session !!")
8181

8282
from pyspark import SparkConf
83-
from pyspark import __version__ as pyspark_version
8483

8584
temp_warehouse_dir = tmpdir_factory.mktemp("spark")
8685
conf = (
@@ -103,14 +102,6 @@ def spark_session(pytestconfig, tmpdir_factory):
103102
.set("spark.driver.memory", "2g")
104103
)
105104

106-
if pyspark_version < "3":
107-
108-
# used to overwrite hive tables
109-
conf = conf.set(
110-
"spark.sql.legacy.allowCreatingManagedTableUsingNonemptyLocation",
111-
"true",
112-
)
113-
114105
session, _, _ = improve_performances(to_add_conf=list(conf.getAll()))
115106

116107
# session is ready

0 commit comments

Comments
 (0)