We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ae08f59 + ff86746 commit 6afeffcCopy full SHA for 6afeffc
jobs/covid_trends_job.py
@@ -8,8 +8,7 @@
8
9
from covid_analysis.transforms import *
10
11
-# tell Python the type of the spark global so code completion works
12
-spark: SparkSession = spark
+spark = SparkSession.builder.getOrCreate()
13
14
# check if job is running in production mode
15
is_prod = len(sys.argv) >= 2 and sys.argv[1] == "--prod"
0 commit comments