We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4e0494 commit 99a163cCopy full SHA for 99a163c
sdk/python/feast/infra/offline_stores/file_source.py
@@ -158,7 +158,13 @@ def get_table_column_names_and_types(
158
# Adding support for different file format path
159
# based on S3 filesystem
160
if filesystem is None:
161
- schema = ParquetDataset(path).schema.to_arrow_schema()
+ schema = ParquetDataset(path).schema
162
+ if hasattr(schema, "names") and hasattr(schema, "types"):
163
+ # Newer versions of pyarrow doesn't have this method,
164
+ # but this field is good enough.
165
+ pass
166
+ else:
167
+ schema = schema.to_arrow_schema()
168
else:
169
schema = ParquetDataset(path, filesystem=filesystem).schema
170
0 commit comments