Skip to content

MSQ: Save stack trace when rewriting faults.#19049

Merged
capistrant merged 1 commit intoapache:masterfrom
gianm:msq-save-stacktrace
Feb 26, 2026
Merged

MSQ: Save stack trace when rewriting faults.#19049
capistrant merged 1 commit intoapache:masterfrom
gianm:msq-save-stacktrace

Conversation

@gianm
Copy link
Contributor

@gianm gianm commented Feb 24, 2026

ControllerImpl has a function mapQueryColumnNameToOutputColumnName that rewrites faults to use the user-visible column names. However, the current implementation also replaces the exceptionStackTrace. The original trace from the worker is lost, replaced by a not-very-useful one from this function on the controller.

This patch changes the function so only the fault is rewritten, not the entire error report, so the original worker stack trace is preserved.

ControllerImpl has a function mapQueryColumnNameToOutputColumnName
that rewrites faults to use the user-visible column names. However, the
current implementation also replaces the exceptionStackTrace. The original
trace from the worker is lost, replaced by a not-very-useful one from
this function on the controller.

This patch changes the function so only the fault is rewritten, not the
entire error report, so the original worker stack trace is preserved.
@github-actions github-actions bot added Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Feb 24, 2026
Copy link
Contributor

@capistrant capistrant left a comment

Choose a reason for hiding this comment

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

👍

@capistrant capistrant merged commit 87d978b into apache:master Feb 26, 2026
58 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants