Dataset Viewer issue

#1
by KarosY - opened

The dataset viewer is not working.

Error details:

Error code:   FeaturesError
Exception:    ArrowInvalid
Message:      Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.
Traceback:    Traceback (most recent call last):
                File "/src/workers/datasets_based/src/datasets_based/workers/first_rows.py", line 507, in compute_first_rows_response
                  iterable_dataset = iterable_dataset._resolve_features()
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 1617, in _resolve_features
                  features = _infer_features_from_batch(self._head())
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 804, in _head
                  return _examples_to_batch(list(self.take(n)))
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 917, in __iter__
                  for key, example in ex_iterable:
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 658, in __iter__
                  yield from islice(self.ex_iterable, self.n)
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 113, in __iter__
                  yield from self.generate_examples_fn(**self.kwargs)
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/iterable_dataset.py", line 743, in wrapper
                  for key, table in generate_tables_fn(**kwargs):
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/datasets/packaged_modules/parquet/parquet.py", line 67, in _generate_tables
                  parquet_file = pq.ParquetFile(f)
                File "/src/workers/datasets_based/.venv/lib/python3.9/site-packages/pyarrow/parquet.py", line 230, in __init__
                  self.reader.open(
                File "pyarrow/_parquet.pyx", line 991, in pyarrow._parquet.ParquetReader.open
                File "pyarrow/error.pxi", line 99, in pyarrow.lib.check_status
              pyarrow.lib.ArrowInvalid: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.

cc @albertvillanova @lhoestq @severo .

I recreated the preview, but got a new error when it tries to load your JSON file:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb4 in position 19: invalid start byte

If you want the preview to show only the data from the parquet file, please remove the JSON data or place them in a hidden directory (with a name that stats with a dot). We're working on a feature to choose which file to show in the preview.

Your need to confirm your account before you can post a new comment.

Sign up or log in to comment