matthewmturner commented on issue #10609:
URL: https://github.com/apache/datafusion/issues/10609#issuecomment-6645044066
So a quick initial check and I am seeing some statistics at least for a
baseline simple case
```
DataFusion CLI v55.1.0
> COPY (
SELECT
i AS id,
named_struct('name', 'widget' || i, 'qty', i * 10) AS item
FROM generate_series(1, 3) AS t(i)
) TO 'out.parquet' STORED AS PARQUET;
+-------+
| count |
+-------+
| 3 |
+-------+
1 row(s) fetched.
Elapsed 0.005 seconds.
> SELECT * FROM 'out.parquet';
+----+--------------------------+
| id | item |
+----+--------------------------+
| 1 | {name: widget1, qty: 10} |
| 2 | {name: widget2, qty: 20} |
| 3 | {name: widget3, qty: 30} |
+----+--------------------------+
3 row(s) fetched.
Elapsed 0.002 seconds.
> SELECT * FROM parquet_metadata('out.parquet');
+-------------+--------------+--------------------+-----------------------+-----------------+-----------+-------------+------------+----------------+------------+-----------+-----------+------------------+----------------------+-----------------+-----------------+--------------------+------------------------------+-------------------+------------------------+------------------+-----------------------+-------------------------+
| filename | row_group_id | row_group_num_rows | row_group_num_columns |
row_group_bytes | column_id | file_offset | num_values | path_in_schema | type
| stats_min | stats_max | stats_null_count | stats_distinct_count |
stats_min_value | stats_max_value | compression | encodings
| index_page_offset | dictionary_page_offset | data_page_offset |
total_compressed_size | total_uncompressed_size |
+-------------+--------------+--------------------+-----------------------+-----------------+-----------+-------------+------------+----------------+------------+-----------+-----------+------------------+----------------------+-----------------+-----------------+--------------------+------------------------------+-------------------+------------------------+------------------+-----------------------+-------------------------+
| out.parquet | 0 | 3 | 3 |
198 | 0 | 0 | 3 | "id" | INT64
| 1 | 3 | 0 | NULL | 1
| 3 | ZSTD(ZstdLevel(1)) | [PLAIN, RLE, RLE_DICTIONARY]
| NULL | 4 | 47 | 73
| 59 |
| out.parquet | 0 | 3 | 3 |
198 | 1 | 0 | 3 | "item.name" |
BYTE_ARRAY | widget1 | widget3 | 0 | NULL |
widget1 | widget3 | ZSTD(ZstdLevel(1)) | [PLAIN, RLE,
RLE_DICTIONARY] | NULL | 77 | 121
| 80 | 74 |
| out.parquet | 0 | 3 | 3 |
198 | 2 | 0 | 3 | "item.qty" | INT64
| 10 | 30 | 0 | NULL | 10
| 30 | ZSTD(ZstdLevel(1)) | [PLAIN, RLE, RLE_DICTIONARY]
| NULL | 157 | 200 | 79
| 65 |
+-------------+--------------+--------------------+-----------------------+-----------------+-----------+-------------+------------+----------------+------------+-----------+-----------+------------------+----------------------+-----------------+-----------------+--------------------+------------------------------+-------------------+------------------------+------------------+-----------------------+-------------------------+
3 row(s) fetched.
Elapsed 0.001 seconds.
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]