Skip to content

Conversation

@XiaoHongbo-Hope
Copy link
Contributor

…S_COLS field

Purpose

Linked issue: close #xxx

Tests

API and Format

Documentation

@XiaoHongbo-Hope XiaoHongbo-Hope marked this pull request as ready for review January 8, 2026 04:55
Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm also curious why the none _VALUE_STATS_COLS is not written out when using Python to write?

@XiaoHongbo-Hope
Copy link
Contributor Author

XiaoHongbo-Hope commented Jan 8, 2026

I'm also curious why the none _VALUE_STATS_COLS is not written out when using Python to write?

Confused too, User says that table is written by older version pypaimon (0.3), I need to double check it, along with the IndexError.

@JingsongLi
Copy link
Contributor

JingsongLi commented Jan 8, 2026

I'm also curious why the none _VALUE_STATS_COLS is not written out when using Python to write?

Confused too, User says that table is written by older version pypaimon (0.3), I need to double check it, along with the IndexError.

Not just old version, Python write append table with full metadata.stats-mode should produce none COLS too.

file_dict = records[0]['_FILE']
try:
if file_dict['_VALUE_STATS_COLS'] is None:
pass
Copy link
Contributor Author

@XiaoHongbo-Hope XiaoHongbo-Hope Jan 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add an assertion to show that None COLS works well with code if file_dict['_VALUE_STATS_COLS'] is None. The root cause of the KeyError is that very older version pypaimon (before 205.09.10) . And double checked user's test table is written before that by pypaimon.

In short, I suggest to discard this fix and ask user do not use the older table, as the root cause is bug during writing, what's your suggestion?

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.

2 participants