Skip to content

[spark] Fix RowTrackingTable reading by add _ROW_ID existing check before adding _ROW_ID#7606

Merged
JingsongLi merged 3 commits intoapache:masterfrom
littlecoder04:spark_row_id_fix
Apr 9, 2026
Merged

[spark] Fix RowTrackingTable reading by add _ROW_ID existing check before adding _ROW_ID#7606
JingsongLi merged 3 commits intoapache:masterfrom
littlecoder04:spark_row_id_fix

Conversation

@littlecoder04
Copy link
Copy Markdown
Contributor

@littlecoder04 littlecoder04 commented Apr 7, 2026

Purpose

When querying the $row_tracking system table with filters, IllegalArgumentException: Row tracking field name '_ROW_ID' conflicts with existing field names
is thrown. Spark silently catches this exception and falls back to post-scan filtering,
so query results are correct but predicates are not pushed down.

Tests

Row Tracking: query row_tracking system table with filter pushdown

@littlecoder04 littlecoder04 marked this pull request as draft April 7, 2026 11:21
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Zouxxyy Zouxxyy marked this pull request as ready for review April 7, 2026 12:23
@littlecoder04 littlecoder04 marked this pull request as draft April 7, 2026 12:41
@littlecoder04 littlecoder04 marked this pull request as ready for review April 8, 2026 05:59
@littlecoder04 littlecoder04 changed the title [spark] Add _ROW_ID existing check before adding _ROW_ID [spark] Fix RowTrackingTable Selecting by Add _ROW_ID existing check before adding _ROW_ID Apr 9, 2026
@littlecoder04 littlecoder04 changed the title [spark] Fix RowTrackingTable Selecting by Add _ROW_ID existing check before adding _ROW_ID [spark] Fix RowTrackingTable reading by add _ROW_ID existing check before adding _ROW_ID Apr 9, 2026
Copy link
Copy Markdown
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.

+1

@JingsongLi JingsongLi merged commit 70110f2 into apache:master Apr 9, 2026
12 checks passed
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