Skip to content

Commit 1f15fe1

Browse files
authored
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.
1 parent a4d4921 commit 1f15fe1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

web-console/src/druid-models/stages/stages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export type StageInput =
7070
| {
7171
type: 'table';
7272
dataSource: string;
73-
intervals: string[];
73+
intervals?: string[];
7474
}
7575
| {
7676
type: 'external';

web-console/src/views/workbench-view/execution-stages-pane/execution-stages-pane.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function summarizeTableInput(tableStageInput: StageInput): string {
7676
if (tableStageInput.type !== 'table') return '';
7777
return assemble(
7878
`Datasource: ${tableStageInput.dataSource}`,
79-
`Interval: ${tableStageInput.intervals.join('; ')}`,
79+
tableStageInput.intervals && `Interval: ${tableStageInput.intervals.join('; ')}`,
8080
).join('\n');
8181
}
8282

0 commit comments

Comments
 (0)