Skip to content
Open
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
7 changes: 6 additions & 1 deletion dat/spark_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,9 @@ def get_spark_session():
'org.apache.spark.sql.delta.catalog.DeltaCatalog',
)
builder = delta.configure_spark_with_delta_pip(builder)
return builder.getOrCreate()
spark = builder.enableHiveSupport().getOrCreate()
hadoop = spark.sparkContext._jvm.org.apache.hadoop # type: ignore
hadoop_conf = spark._jsc.hadoopConfiguration() # type: ignore
fs = hadoop.fs.FileSystem.get(hadoop_conf) # type: ignore
fs.setWriteChecksum(False)
return spark