Skip to content

Commit 8ab1229

Browse files
shaurya-nwseadchia
authored andcommitted
Fix spark_kafka_processor sort
Signed-off-by: shaurya.rawat <shaurya.rawat@new-work.se>
1 parent 4575ef0 commit 8ab1229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/python/feast/infra/contrib/spark_kafka_processor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def batch_write(row: DataFrame, batch_id: int):
131131
# Also add a 'created' column.
132132
rows = (
133133
rows.sort_values(
134-
by=self.join_keys + [self.sfv.timestamp_field], ascending=True
134+
by=[*self.join_keys, self.sfv.timestamp_field], ascending=False
135135
)
136136
.groupby(self.join_keys)
137137
.nth(0)

0 commit comments

Comments
 (0)