You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "platinumhamburg (via GitHub)" <gi...@apache.org> on 2026/04/08 06:59:02 UTC
[I] Optimize DefaultLogRecordBatchStatistics.getNullCounts() to return int[] instead of Long[] [fluss]
platinumhamburg opened a new issue, #3021:
URL: https://github.com/apache/fluss/issues/3021
### Search before asking
- [x] I searched in the [issues](https://github.com/apache/fluss/issues) and found nothing similar.
### Description
getNullCounts() currently returns Long[]. Since null counts are stored as 4-byte integers in the batch statistics format, int[] is sufficient and avoids boxing overhead (8 bytes per Long vs 4 bytes per int). Use -1 as the sentinel for "not available". This reduces memory for cachedNullCounts and statsNullCounts, especially for wide tables (1000+ fields).
Ref: https://github.com/apache/fluss/pull/2951#discussion_r3029594429
### Willingness to contribute
- [x] I'm willing to submit a PR!
--
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: issues-unsubscribe@fluss.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Optimize DefaultLogRecordBatchStatistics.getNullCounts() to return int[] instead of Long[] [fluss]
Posted by "wuchong (via GitHub)" <gi...@apache.org>.
wuchong closed issue #3021: Optimize DefaultLogRecordBatchStatistics.getNullCounts() to return int[] instead of Long[]
URL: https://github.com/apache/fluss/issues/3021
--
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: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org