Skip to content

Commit

Permalink
Fix ingestion job config dict with null value (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
moritzmeister committed Jan 25, 2021
1 parent 93225f5 commit 1c0db64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/hsfs_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def insert_fg(spark: SparkSession, job_conf: Dict[Any, Any]) -> None:
df = get_fg_spark_df(job_conf)
fg = fs.get_feature_group(name=job_conf["name"], version=job_conf["version"])

fg.insert(df, write_options=job_conf.pop("write_options", {}))
fg.insert(df, write_options=job_conf.pop("write_options", {}) or {})


def create_td(job_conf: Dict[Any, Any]) -> None:
Expand All @@ -59,8 +59,8 @@ def create_td(job_conf: Dict[Any, Any]) -> None:
td = fs.get_training_dataset(name=job_conf["name"], version=job_conf["version"])
td.insert(
q,
overwrite=job_conf.pop("overwrite", False),
write_options=job_conf.pop("write_options", {}),
overwrite=job_conf.pop("overwrite", False) or False,
write_options=job_conf.pop("write_options", {}) or {},
)


Expand Down

0 comments on commit 1c0db64

Please sign in to comment.