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.
This commit is contained in:
Nora Dimitrijević
2025-02-11 12:21:06 +00:00
parent 824bf308de
commit 8102750f5c

View File

@@ -798,7 +798,7 @@ function PredicateRow(props: PredicateRowProps) {
</>
}
/>
{abbreviateRASteps(first?.steps ?? second!.steps).map(
{abbreviateRASteps(first?.steps ?? second?.steps ?? []).map(
(step, index) => (
<PipelineStep
key={index}