Skip to content

Commit

Permalink
Share get_parquet_metadata functionality across schema inference and …
Browse files Browse the repository at this point in the history
…file metadata retrieval
  • Loading branch information
Jay Chia committed Jul 25, 2023
1 parent 68d1e4f commit 6a7912d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daft/table/schema_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def from_parquet(
if use_native_downloader:
assert isinstance(file, (str, pathlib.Path))
# TODO(sammy): [RUST-PARQUET] Implement getting a schema from a Parquet file
# return Schema.from_parquet(file, io_config=io_config)
# return get_parquet_metadata([file], io_config=io_config)[0].get_daft_schema()
raise NotImplementedError(
"Not implemented: use Rust native downloader to retrieve a Daft Schema from a Parquet file"
)
Expand Down

0 comments on commit 6a7912d

Please sign in to comment.