Skip to content

fix: TableInputSpec serialized two intervals fields.#19264

Merged
gianm merged 2 commits intoapache:masterfrom
gianm:fix-msq-table-intervalsForSerialization
Apr 15, 2026
Merged

fix: TableInputSpec serialized two intervals fields.#19264
gianm merged 2 commits intoapache:masterfrom
gianm:fix-msq-table-intervalsForSerialization

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Apr 4, 2026

TableInputSpec has a getIntervalsForSerialization method whose purpose is to omit the "intervals" field when the query interval is ONLY_ETERNITY. However, this was not wired up correctly, so actually what happened is when intervals did exist, both "intervals" and "intervalsForSerialization" would be written. This patch adjusts the Jackson annotations to match the original intent.

TableInputSpec has a getIntervalsForSerialization method whose purpose
is to omit the "intervals" field when the query interval is ONLY_ETERNITY.
However, this was not wired up correctly, so actually what happened is
when intervals did exist, both "intervals" and "intervalsForSerialization"
would be written. This patch adjusts the Jackson annotations to match
the original intent.
@github-actions github-actions bot added Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Apr 4, 2026
@gianm gianm merged commit e4f3008 into apache:master Apr 15, 2026
63 of 64 checks passed
@gianm gianm deleted the fix-msq-table-intervalsForSerialization branch April 15, 2026 03:58
@github-actions github-actions bot added this to the 38.0.0 milestone Apr 15, 2026
gianm added a commit to gianm/druid that referenced this pull request Apr 17, 2026
Since apache#19264, the "intervals" field is omitted from table specs
when it is ETERNITY (i.e. no time filter). This caused a crash
in the web console, which is fixed by this patch.
capistrant pushed a commit that referenced this pull request Apr 20, 2026
Since #19264, the "intervals" field is omitted from table specs
when it is ETERNITY (i.e. no time filter). This caused a crash
in the web console, which is fixed by this patch.
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