ssandona commented on issue #13374:
URL: https://github.com/apache/iceberg/issues/13374#issuecomment-3223380820
@jeesou I see in the Iceberg metadata file the stats are generated. Example:
```
...
"statistics" : [ {
"snapshot-id" : 8936043009013447565,
"statistics-path" :
"s3://mybucket/datasets/temp/online_orders_ndv/metadata/c8c75f51-b30b-4214-9e84-47da6e5055c6-a24b38c2-c526-49fe-b5e0-7dd3c329b5ae.stat",
"file-size-in-bytes" : 28829,
"file-footer-size-in-bytes" : 272,
"blob-metadata" : [ {
"type" : "apache-datasketches-theta-v1",
"snapshot-id" : 8936043009013447565,
"sequence-number" : 1,
"fields" : [ 1 ],
"properties" : {
"ndv" : "98645980"
}
} ]
} ],
...
```
Anyway I do not see stats by running `DESC`:
```
spark.sql(f"""
DESCRIBE EXTENDED default.online_orders_ndv order_id
"""
).show(truncate=False)
```
Output:
```
+---------+----------+
|info_name|info_value|
+---------+----------+
|col_name |order_id |
|data_type|bigint |
|comment |NULL |
+---------+----------+
```
--
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]