You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "tsho (via GitHub)" <gi...@apache.org> on 2026/09/26 07:25:40 UTC

[PR] Arrow: Cover null decimal values with defaults across batches [iceberg]

tsho opened a new pull request, #18271:
URL: https://github.com/apache/iceberg/pull/18271

   The existing non-dictionary decimal test only reads identical non-null values in one batch. This PR extends it to verify that explicitly stored nulls and varying decimal values are preserved for fields with initial and write defaults across different batch sizes, with and without container reuse. All three existing decimal physical representations are covered. The test changes and this description were drafted with Codex and reviewed and modified by the author.
   
   Related: https://github.com/apache/iceberg/pull/16501
   
   Test plan:
   - Read seven rows using batch sizes of 2 (multiple batches with a partial final batch), 7 (one full batch), and 1024 (the original single-batch setting). Use different null positions for INT32-, INT64-, and fixed-byte-backed decimals, and compare every decoded value with the written record. Run both container-reuse modes for each batch size, covering six combinations.
   
   Validation:
   - ./gradlew spotlessApply and ./gradlew :iceberg-arrow:spotlessApply :iceberg-arrow:build passed locally on JDK 21.0.2.
   - Temporarily changing ColumnVector.getDecimal() to return 0.00 for null decimals caused all six parameterized cases to fail with expected: null, but was: 0.00. The temporary mutation was reverted before the final successful build.
   
   ---
   **AI Disclosure**
   - Model: GPT (version: 6)
   - Platform/Tool: OpenAI Codex
   - Human Oversight: fully reviewed
   - Prompt Summary: Extend Apache Iceberg's vectorized decimal tests to cover stored nulls, varying values, and multiple batch sizes, and validate the changes.
   


-- 
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@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Arrow: Cover null decimal values with defaults across batches [iceberg]

Posted by "tsho (via GitHub)" <gi...@apache.org>.
tsho commented on PR #18271:
URL: https://github.com/apache/iceberg/pull/18271#issuecomment-5903481324

   Thanks!


-- 
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@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Arrow: Cover null decimal values with defaults across batches [iceberg]

Posted by "RussellSpitzer (via GitHub)" <gi...@apache.org>.
RussellSpitzer merged PR #18271:
URL: https://github.com/apache/iceberg/pull/18271


-- 
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@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Arrow: Cover null decimal values with defaults across batches [iceberg]

Posted by "uros-b (via GitHub)" <gi...@apache.org>.
uros-b commented on PR #18271:
URL: https://github.com/apache/iceberg/pull/18271#issuecomment-5875798153

   Nice, thank you @tsho! This is test only, production fix is already on main from #16501


-- 
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@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


Re: [PR] Arrow: Cover null decimal values with defaults across batches [iceberg]

Posted by "RussellSpitzer (via GitHub)" <gi...@apache.org>.
RussellSpitzer commented on PR #18271:
URL: https://github.com/apache/iceberg/pull/18271#issuecomment-5876742558

   Thanks for the pr @tsho and for the review @uros-b 


-- 
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@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org