lurnagao-dahua opened a new issue, #15664:
URL: https://github.com/apache/iceberg/issues/15664

   ### Query engine
   
   Spark
   
   
   
   ### Question
   
   Hi, term!
   The SparkSchemaUtil. estimateSize method calculates the size based on the 
default size of the field type and the number of rows, may differ significantly 
from the actual size.
   May I ask if there are any areas that can be improved?
   
https://github.com/apache/iceberg/blob/eb460a524f3a192e3584a3bdabcff237c38b04a4/spark/v4.1/spark/src/main/java/org/apache/iceberg/spark/SparkSchemaUtil.java#L339
   
   The discovery of this issue is due to the different execution plans of Spark 
querying the parquet source/iceberg tables, indicating that Spark querying the 
parcel source statistics information is more accurate.
   
https://github.com/apache/spark/blob/e3c947d1b79c87c4a5dfb2dd35c85f3ab62a271c/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PartitioningAwareFileIndex.scala#L117


-- 
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]

Reply via email to