You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@amoro.apache.org by "cxxiii (via GitHub)" <gi...@apache.org> on 2025/07/03 02:55:44 UTC

[I] [Improvement]: Optimize target file size after self-optimizing [amoro]

cxxiii opened a new issue, #3645:
URL: https://github.com/apache/amoro/issues/3645

   ### Search before asking
   
   - [x] I have searched in the [issues](https://github.com/apache/amoro/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What would you like to be improved?
   
   Each merging task is supposed to output a single file, but in reality, more than one file was produced.
   
   ### How should we improve?
   
   Since the binpack algorithm has already set the total size of each task to be no more than 128MB when splitting tasks, therefore, the size of the target file can be set to be unlimited to avoid errors in the Parquet writer's estimation of size.
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Subtasks
   
   _No response_
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscribe@amoro.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement]: Optimize target file size after self-optimizing [amoro]

Posted by "xxubai (via GitHub)" <gi...@apache.org>.
xxubai commented on issue #3645:
URL: https://github.com/apache/amoro/issues/3645#issuecomment-3043965588

   Could you further explain why the Parquet writer might misestimate the target file size?


-- 
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: commits-unsubscribe@amoro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement]: Optimize target file size after self-optimizing [amoro]

Posted by "zhoujinsong (via GitHub)" <gi...@apache.org>.
zhoujinsong closed issue #3645: [Improvement]: Optimize target file size after self-optimizing
URL: https://github.com/apache/amoro/issues/3645


-- 
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: commits-unsubscribe@amoro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement]: Optimize target file size after self-optimizing [amoro]

Posted by "cxxiii (via GitHub)" <gi...@apache.org>.
cxxiii commented on issue #3645:
URL: https://github.com/apache/amoro/issues/3645#issuecomment-3048909972

   > Could you further explain why the Parquet writer might misestimate the target file size?
   
   The estimation error of Parquet writer file size mainly stems from the impact of compression. The estimated file size consists of two parts: the data already written to disk, which is compressed and thus accurately measured, and the data still buffered in memory. The in-memory buffer includes both the uncompressed data in the column store (not yet flushed to the page store) and the compressed data already in the page store for each column. Since most of the buffered data is counted in its uncompressed form, the estimated file size is often larger than the actual file size.
   Additionally, files with more columns are more prone to estimation errors. For files with fewer columns, the flush to the page store is often triggered before  flushing to the disk (the specified row group size which is default 128 MB is reached)—either because the content of a single column exceeds the specified page size (1 MB) or rowCount inserting exceed pageRowCountLimit (default 2000 rows). Since data written to the page store is compressed, files with fewer columns have a smaller proportion of uncompressed data in memory, resulting in smaller estimation errors.
   


-- 
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: commits-unsubscribe@amoro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement]: Optimize target file size after self-optimizing [amoro]

Posted by "xxubai (via GitHub)" <gi...@apache.org>.
xxubai commented on issue #3645:
URL: https://github.com/apache/amoro/issues/3645#issuecomment-3050958839

   Thanks for the explanation.


-- 
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: commits-unsubscribe@amoro.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org