Skip to content

Commit

Permalink
fix: tweak spark session builder to fix type hints (#982)
Browse files Browse the repository at this point in the history
Co-authored-by: Szymon Szyszkowski <[email protected]>
  • Loading branch information
Daniel-Considine and project-defiant authored Feb 3, 2025
1 parent f3a2f9d commit e2832a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gentropy/common/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def __init__( # noqa: D107
)

self.spark = (
SparkSession.builder.config(conf=merged_conf)
SparkSession.Builder()
.config(conf=merged_conf)
.master(spark_uri)
.appName(app_name)
.getOrCreate()
Expand Down

0 comments on commit e2832a3

Please sign in to comment.