Skip to content

MSQ: Save stack trace when rewriting faults.#19049

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

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

Conversation

@gianm

@gianm gianm commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

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

@capistrant capistrant left a comment

Copy link
Copy Markdown
Contributor

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
@cecemei cecemei added this to the 37.0.0 milestone Apr 8, 2026
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.

3 participants