Skip to content

Commit

Permalink
set JobConfiguration type in DeltaStreamerJobConf
Browse files Browse the repository at this point in the history
  • Loading branch information
bubriks committed Nov 6, 2024
1 parent e57bdce commit f69b2d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/hsfs/core/deltastreamer_jobconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
import json

from hsfs import util

from hsfs.core.job_configuration import JobConfiguration

class DeltaStreamerJobConf:

Check failure on line 23 in python/hsfs/core/deltastreamer_jobconf.py

View workflow job for this annotation

GitHub Actions / Lint and Stylecheck

Ruff (I001)

python/hsfs/core/deltastreamer_jobconf.py:16:1: I001 Import block is un-sorted or un-formatted
def __init__(self, options, spark_options, **kwargs):
self._options = options
self._spark_options = spark_options

def to_dict(self):
self._spark_options["type"] = JobConfiguration.DTO_TYPE
return {
"writeOptions": self._options,
"sparkJobConfiguration": self._spark_options,
Expand Down

0 comments on commit f69b2d5

Please sign in to comment.