Skip to content

Commit

Permalink
opt: wrap a couple of long lines
Browse files Browse the repository at this point in the history
This PR also serves to test a recent change to blathers.

Fixes cockroachdb#138038

Release note: None
  • Loading branch information
rytaft committed Dec 27, 2024
1 parent a0faa4e commit e53eb60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/sql/opt/memo/expr_format.go
Original file line number Diff line number Diff line change
Expand Up @@ -1042,9 +1042,11 @@ func (f *ExprFmtCtx) formatScalarWithLabel(
f.Buffer.WriteString(": ")
}
switch scalar.Op() {
case opt.ProjectionsOp, opt.AggregationsOp, opt.UniqueChecksOp, opt.FKChecksOp, opt.KVOptionsOp, opt.FastPathUniqueChecksOp:
case opt.ProjectionsOp, opt.AggregationsOp, opt.UniqueChecksOp, opt.FKChecksOp, opt.KVOptionsOp,
opt.FastPathUniqueChecksOp:
// Omit empty lists (except filters) and special-purpose fast path check expressions.
if scalar.ChildCount() == 0 || (scalar.Op() == opt.FastPathUniqueChecksOp && f.HasFlags(ExprFmtHideFastPathChecks)) {
if scalar.ChildCount() == 0 ||
(scalar.Op() == opt.FastPathUniqueChecksOp && f.HasFlags(ExprFmtHideFastPathChecks)) {
return
}

Expand Down

0 comments on commit e53eb60

Please sign in to comment.