@@ -135,7 +135,7 @@ def _upload_jar(jar_s3_prefix: str, local_path: str) -> str:
135135
136136
137137def _sync_offline_to_online_step (
138- jar_path : str , feature_table_name : str , args : List [str ],
138+ jar_path : str , feature_table_name : str , conf : Dict [ str , str ], args : List [str ],
139139) -> Dict [str , Any ]:
140140
141141 return {
@@ -155,6 +155,7 @@ def _sync_offline_to_online_step(
155155 "spark-submit" ,
156156 "--class" ,
157157 "feast.ingestion.IngestionJob" ,
158+ * _prepare_conf_args (conf ),
158159 "--packages" ,
159160 "com.google.cloud.spark:spark-bigquery-with-dependencies_2.12:0.17.2" ,
160161 jar_path ,
@@ -344,8 +345,17 @@ def _upload_dataframe(s3prefix: str, df: pandas.DataFrame) -> str:
344345 )
345346
346347
348+ def _prepare_conf_args (conf : Dict [str , str ]):
349+ return [
350+ _ for name , value in conf .items () for _ in ["--conf" , f'"{ name } "="{ value } "' ]
351+ ]
352+
353+
347354def _historical_retrieval_step (
348- pyspark_script_path : str , args : List [str ], output_file_uri : str ,
355+ pyspark_script_path : str ,
356+ conf : Dict [str , str ],
357+ args : List [str ],
358+ output_file_uri : str ,
349359) -> Dict [str , Any ]:
350360
351361 return {
@@ -361,7 +371,8 @@ def _historical_retrieval_step(
361371 "Value" : output_file_uri ,
362372 },
363373 ],
364- "Args" : ["spark-submit" , pyspark_script_path ] + args ,
374+ "Args" : ["spark-submit" , * _prepare_conf_args (conf ), pyspark_script_path ]
375+ + args ,
365376 "Jar" : "command-runner.jar" ,
366377 },
367378 }
@@ -371,6 +382,7 @@ def _stream_ingestion_step(
371382 jar_path : str ,
372383 extra_jar_paths : List [str ],
373384 feature_table_name : str ,
385+ conf : Dict [str , str ],
374386 args : List [str ],
375387 job_hash : str ,
376388) -> Dict [str , Any ]:
@@ -395,6 +407,7 @@ def _stream_ingestion_step(
395407 {"Key" : "feast.step_metadata.job_hash" , "Value" : job_hash },
396408 ],
397409 "Args" : ["spark-submit" , "--class" , "feast.ingestion.IngestionJob" ]
410+ + _prepare_conf_args (conf )
398411 + jars_args
399412 + [
400413 "--packages" ,
0 commit comments