Skip to content

Commit 8102750

Browse files
committed
ComparePerformance: fix crash in RTJO mode
With `--dynamic-join-order-mode=all`, both `first` and `second` are undefined, leading to a crash. Until RTJO mode gets proper tuple counting, this change prevents a crash when unfurling the steps of a predicate.
1 parent 824bf30 commit 8102750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/ql-vscode/src/view/compare-performance/ComparePerformance.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ function PredicateRow(props: PredicateRowProps) {
798798
</>
799799
}
800800
/>
801-
{abbreviateRASteps(first?.steps ?? second!.steps).map(
801+
{abbreviateRASteps(first?.steps ?? second?.steps ?? []).map(
802802
(step, index) => (
803803
<PipelineStep
804804
key={index}

0 commit comments

Comments
 (0)