Open rkunnamp opened 3 months ago
Hey @rkunnamp!
We realized that deltalake
made a backward incompatible change in the 0.17 version.... If you pip install deltalake<0.17
instead this should be fixed 😓
We'll be figuring out a good solution here (possible lower-pinning the version of deltalake and updating our code).
Thank you for that note.
Describe the bug
Getting the following error when calling write_deltalake
File /opt/conda/lib/python3.11/site-packages/daft/table/table_io.py:691, in write_deltalake..file_visitor(written_file)
689 def file_visitor(written_file: Any) -> None:
690 path, partition_values = get_partitions_from_path(written_file.path)
--> 691 stats = get_file_stats_from_metadata(written_file.metadata)
693 # PyArrow added support for written_file.size in 9.0.0
694 if ARROW_VERSION >= (9, 0, 0):
File /opt/conda/lib/python3.11/site-packages/daft/table/table_io.py:687, in write_deltalake..get_file_stats_from_metadata(metadata)
686 def get_file_stats_from_metadata(metadata):
--> 687 deltalake.writer.get_file_stats_from_metadata(metadata, -1)
TypeError: get_file_stats_from_metadata() missing 1 required positional argument: 'columns_to_collect_stats'
To Reproduce Steps to reproduce the behavior:
The error mentioned above is obtained. On inspecting t5 folder, found that metdata files are not written.