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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user