Skip to content

[python] Add file_source assertion in row-tracking commit to fail fast on missing file_source#7610

Merged
JingsongLi merged 1 commit intoapache:masterfrom
littlecoder04:file_source_check
Apr 9, 2026
Merged

[python] Add file_source assertion in row-tracking commit to fail fast on missing file_source#7610
JingsongLi merged 1 commit intoapache:masterfrom
littlecoder04:file_source_check

Conversation

@littlecoder04
Copy link
Copy Markdown
Contributor

@littlecoder04 littlecoder04 commented Apr 8, 2026

Purpose

if file_source is None, the condition None == 0 silently evaluates to False, skipping row ID assignment. This causes nextRowId not to increment, leading to first_row_id conflicts. So this PR add file_source check like java.

Tests

@JingsongLi
Copy link
Copy Markdown
Contributor

+1

@JingsongLi JingsongLi merged commit e69109d into apache:master Apr 9, 2026
6 checks passed
yuzelin pushed a commit that referenced this pull request Apr 12, 2026
…t on missing file_source (#7610)

if file_source is None, the condition `None == 0` silently evaluates to
False, skipping row ID assignment. This causes nextRowId not to
increment, leading to first_row_id conflicts. So this PR add file_source
check like java.
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.

3 participants