Skip to content

Commit

Permalink
Remove opening the file object
Browse files Browse the repository at this point in the history
Let pyarrow handle opening the path using the filesystem.

Signed-off-by: Max Z <max.zwiessele@babylonhealth.com>
  • Loading branch information
mzwiessele committed Sep 15, 2022
1 parent 7bc1dff commit ea1a315
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/feast/infra/offline_stores/file_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def get_table_column_names_and_types(
schema = ParquetDataset(path).schema.to_arrow_schema()
else:
schema = ParquetDataset(
filesystem.open_input_file(path), filesystem=filesystem
path, filesystem=filesystem
).schema

return zip(schema.names, map(str, schema.types))
Expand Down

0 comments on commit ea1a315

Please sign in to comment.