error:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/flytekit/exceptions/scopes.py", line 206, in user_entry_point
return wrapped(*args, **kwargs)
File "/root/tmptry.py", line 38, in take_returntask_as_sd
input_df_pl = input_df.open(pl.DataFrame).all()
File "/usr/local/lib/python3.10/site-packages/flytekit/types/structured/structured_dataset.py", line 105, in all
return flyte_dataset_transformer.open_as(ctx, self.literal, self._dataframe_type, self.metadata)
File "/usr/local/lib/python3.10/site-packages/flytekit/types/structured/structured_dataset.py", line 791, in open_as
result = decoder.decode(ctx, sd, updated_metadata)
File "/usr/local/lib/python3.10/site-packages/flytekitplugins/polars/sd_transformers.py", line 70, in decode
return pl.read_parquet(uri, columns=columns, use_pyarrow=True, storage_options=kwargs)
File "/usr/local/lib/python3.10/site-packages/polars/io/parquet/functions.py", line 123, in read_parquet
pa.parquet.read_table(
File "/usr/local/lib/python3.10/site-packages/pyarrow/parquet/core.py", line 2824, in read_table
dataset = _ParquetDatasetV2(
File "/usr/local/lib/python3.10/site-packages/pyarrow/parquet/core.py", line 2412, in __init__
[fragment], schema=schema or fragment.physical_schema,
File "pyarrow/_dataset.pyx", line 905, in pyarrow._dataset.Fragment.physical_schema.__get__
File "pyarrow/error.pxi", line 144, in pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 100, in pyarrow.lib.check_status
Message:
Could not open Parquet input source '<Buffer>': Parquet file size is 0 bytes
User error.