Skip to content

Commit

Permalink
ComparePerformance: fix crash in RTJO mode
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
d10c committed Feb 11, 2025
1 parent 824bf30 commit 8102750
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 8102750

Please sign in to comment.