Skip to content

Commit ea1a315

Browse files
committed
Remove opening the file object
Let pyarrow handle opening the path using the filesystem. Signed-off-by: Max Z <max.zwiessele@babylonhealth.com>
1 parent 7bc1dff commit ea1a315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/python/feast/infra/offline_stores/file_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def get_table_column_names_and_types(
161161
schema = ParquetDataset(path).schema.to_arrow_schema()
162162
else:
163163
schema = ParquetDataset(
164-
filesystem.open_input_file(path), filesystem=filesystem
164+
path, filesystem=filesystem
165165
).schema
166166

167167
return zip(schema.names, map(str, schema.types))

0 commit comments

Comments
 (0)