Skip to content

Preserve exception type in ClosableIterator.translateException()#11841

Draft
acvictor wants to merge 1 commit intoapache:mainfrom
acvictor:acvictor/preserveExceptionType
Draft

Preserve exception type in ClosableIterator.translateException()#11841
acvictor wants to merge 1 commit intoapache:mainfrom
acvictor:acvictor/preserveExceptionType

Conversation

@acvictor
Copy link
Copy Markdown
Contributor

What changes are proposed in this pull request?

The default translateException() wraps all exceptions in GlutenException, including those that are already RuntimeExceptions. This causes double-wrapping (GlutenException(GlutenException(original))) and prevents callers from catching specific exception types like SparkException etc. This PR returns RuntimeExceptions as is to preserve original type.

How was this patch tested?

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

No

@github-actions github-actions bot added the CORE works for Gluten Core label Mar 27, 2026
@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

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

Labels

CORE works for Gluten Core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant