kosiew commented on issue #957: URL: https://github.com/apache/datafusion-python/issues/957#issuecomment-2735264159
I tested this with the current `main` branch and roundtrip schema is returning `array: fixed_size_list<item: float>[2]` too. ``` >>> import datafusion as df >>> import pyarrow as pa >>> >>> FILENAME = "/tmp/fixed_array_example.parquet" >>> ctx = df.SessionContext() >>> >>> array = pa.array([[1.0, 2.0], [3.0, 4.0]], type=pa.list_(pa.float32(), 2)) >>> table = pa.Table.from_pydict({"array": array}) >>> df_table = ctx.from_arrow(table) >>> print("original schema:") original schema: >>> print(df_table.schema()) array: fixed_size_list<item: float>[2] child 0, item: float >>> >>> df_table.write_parquet(FILENAME) >>> print("roundtrip schema:") roundtrip schema: >>> print(ctx.read_parquet(FILENAME).schema()) array: fixed_size_list<item: float>[2] child 0, item: float ``` I think this issue can be closed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org