steFaiz opened a new pull request, #7797:
URL: https://github.com/apache/paimon/pull/7797

   ### Purpose
   Currently stats evolution in Files System table do not consider data 
evolution, which may cause:
   ```text
   Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds 
for length 1
        at 
org.apache.paimon.memory.MemorySegmentUtils.getLongMultiSegments(MemorySegmentUtils.java:779)
 ~[paimon-flink-1.18-1.4-beta-20260415.042901-14.jar:1.4-beta-SNAPSHOT]
        at 
org.apache.paimon.memory.MemorySegmentUtils.getLong(MemorySegmentUtils.java:769)
 ~[paimon-flink-1.18-1.4-beta-20260415.042901-14.jar:1.4-beta-SNAPSHOT]
        at org.apache.paimon.data.BinaryArray.getLong(BinaryArray.java:160) 
~[paimon-flink-1.18-1.4-beta-20260415.042901-14.jar:1.4-beta-SNAPSHOT]
        at 
org.apache.paimon.stats.SimpleStatsEvolution$NullCountsEvoArray.getLong(SimpleStatsEvolution.java:215)
 ~[paimon-flink-1.18-1.4-beta-20260415.042901-14.jar:1.4-beta-SNAPSHOT]
   ...
   ```
   This PR fixes this by passing the writeCols on creation.
   ### Tests
   See `org.apache.paimon.table.system.FilesTableTest`


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

Reply via email to