Skip to content

Commit

Permalink
fix: Spark kafka processor sorting (#3479)
Browse files Browse the repository at this point in the history
Fix spark_kafka_processor sort

Signed-off-by: shaurya.rawat <[email protected]>
  • Loading branch information
shaurya-nwse authored Feb 17, 2023
1 parent 4575ef0 commit f2cbf43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/feast/infra/contrib/spark_kafka_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def batch_write(row: DataFrame, batch_id: int):
# Also add a 'created' column.
rows = (
rows.sort_values(
by=self.join_keys + [self.sfv.timestamp_field], ascending=True
by=[*self.join_keys, self.sfv.timestamp_field], ascending=False
)
.groupby(self.join_keys)
.nth(0)
Expand Down

0 comments on commit f2cbf43

Please sign in to comment.