Skip to content

Commit c9dbaff

Browse files
elianddbjycor
andcommitted
Apply suggestion from @jycor
Co-authored-by: James Cor <[email protected]>
1 parent 34577d4 commit c9dbaff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/analyzer/optimization_rules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ func simplifyFilters(ctx *sql.Context, a *Analyzer, node sql.Node, scope *plan.S
330330
if lit, ok := e.Child.(*expression.Literal); ok {
331331
val, err := sql.ConvertToBool(ctx, lit.Value())
332332
if err != nil {
333-
// non-const, keep as is
333+
// error while converting, keep as is
334334
return e, transform.SameTree, nil
335335
}
336336
return expression.NewLiteral(!val, e.Type()), transform.NewTree, nil

0 commit comments

Comments
 (0)