Skip to content

Conversation

@turboFei
Copy link
Member

@turboFei turboFei commented Jan 20, 2026

What changes were proposed in this pull request?

Log TID for scanned file in FileScanRDD.

Why are the changes needed?

Similar with #46966.

User story:
When we encounter Parquet file corruption in production, we typically have the Task ID (TID) from the error message. However, executor logs contain interleaved log messages from multiple tasks running concurrently. Without TID in the file scan logs, we cannot easily determine which specific files were scanned by the failing task, making it difficult to narrow down which Parquet file is corrupted.

By logging the TID alongside the scanned file path, we can now filter executor logs by the failing task's TID and quickly identify the exact set of files that were processed by that task.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Review, as it only touches log contents.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions
Copy link

JIRA Issue Information

=== Improvement SPARK-55107 ===
Summary: Log TID for scanned file in FileScanRDD
Assignee: Cheng Pan
Status: Open
Affected: ["4.1.1"]


This comment was automatically generated by GitHub Actions

@github-actions github-actions bot added the SQL label Jan 20, 2026
@turboFei turboFei closed this Jan 20, 2026
@turboFei turboFei reopened this Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant