Skip to content

Commit 39aeb0c

Browse files
authored
fix: Correct column list polars materialization engine (#5595)
fix: returning the correct column list when requesting columnsin the PolarsBackend Signed-off-by: Dan Baron <dan.baron@starlingbank.com>
1 parent c3e6c56 commit 39aeb0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/python/feast/infra/compute_engines/local/backends/polars_backend.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88

99
class PolarsBackend(DataFrameBackend):
10-
def columns(self, df):
11-
pass
10+
def columns(self, df: pl.DataFrame) -> list[str]:
11+
return df.columns
1212

1313
def from_arrow(self, table: pa.Table) -> pl.DataFrame:
1414
return pl.from_arrow(table)

0 commit comments

Comments
 (0)