Skip to content

Commit

Permalink
pre-commit changes
Browse files Browse the repository at this point in the history
Signed-off-by: zerafachris PERSONAL <[email protected]>
  • Loading branch information
zerafachris committed Jan 6, 2025
1 parent e75d483 commit 57e773f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sdk/python/feast/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def to_proto(self) -> DataSourceProto.KafkaOptions:
if self.watermark_delay_threshold is not None:
watermark_delay_threshold = Duration()
watermark_delay_threshold.FromTimedelta(self.watermark_delay_threshold)

kafka_settings = None
if self.kafka_settings is not None:
kafka_settings = self.kafka_settings
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/feast/infra/contrib/spark_kafka_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ def _ingest_stream_data(self) -> StreamTable:
)

if self.data_source.kafka_options.kafka_settings is not None:
for k,v in self.data_source.kafka_options.kafka_settings.items():
stream_df = stream_df.option(k,v)
for k, v in self.data_source.kafka_options.kafka_settings.items():
stream_df = stream_df.option(k, v)

stream_df = stream_df.load().selectExpr("CAST(value AS STRING)")

Expand Down

0 comments on commit 57e773f

Please sign in to comment.