This is an automated email from the ASF dual-hosted git repository.
capistrant pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 1f15fe19705 fix: Console handling for tables without intervals.
(#19343)
1f15fe19705 is described below
commit 1f15fe19705714c822e6ea3bed9a42f88b10f26d
Author: Gian Merlino <[email protected]>
AuthorDate: Mon Apr 20 06:46:16 2026 -0700
fix: Console handling for tables without intervals. (#19343)
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.
---
web-console/src/druid-models/stages/stages.ts | 2 +-
.../workbench-view/execution-stages-pane/execution-stages-pane.tsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/web-console/src/druid-models/stages/stages.ts
b/web-console/src/druid-models/stages/stages.ts
index 07014cfd793..c1e2e18096d 100644
--- a/web-console/src/druid-models/stages/stages.ts
+++ b/web-console/src/druid-models/stages/stages.ts
@@ -70,7 +70,7 @@ export type StageInput =
| {
type: 'table';
dataSource: string;
- intervals: string[];
+ intervals?: string[];
}
| {
type: 'external';
diff --git
a/web-console/src/views/workbench-view/execution-stages-pane/execution-stages-pane.tsx
b/web-console/src/views/workbench-view/execution-stages-pane/execution-stages-pane.tsx
index 4b74879f625..5a4cb1932f5 100644
---
a/web-console/src/views/workbench-view/execution-stages-pane/execution-stages-pane.tsx
+++
b/web-console/src/views/workbench-view/execution-stages-pane/execution-stages-pane.tsx
@@ -76,7 +76,7 @@ function summarizeTableInput(tableStageInput: StageInput):
string {
if (tableStageInput.type !== 'table') return '';
return assemble(
`Datasource: ${tableStageInput.dataSource}`,
- `Interval: ${tableStageInput.intervals.join('; ')}`,
+ tableStageInput.intervals && `Interval:
${tableStageInput.intervals.join('; ')}`,
).join('\n');
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]