Skip to content

[core] fix stats evolution for data evolution tables#7797

Open
steFaiz wants to merge 3 commits intoapache:masterfrom
steFaiz:fix_files_system_table
Open

[core] fix stats evolution for data evolution tables#7797
steFaiz wants to merge 3 commits intoapache:masterfrom
steFaiz:fix_files_system_table

Conversation

@steFaiz
Copy link
Copy Markdown
Contributor

@steFaiz steFaiz commented May 9, 2026

Purpose

Currently stats evolution in Files System table do not consider data evolution, which may cause:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant