Skip to content

opt: add rule to simplify const comparison with ANY values #132328

@DrewKimball

Description

@DrewKimball

Given a constant value compared using the ANY or SOME operators, we should be able to check for constants in the right hand side that can be used to simplify the comparison to True. For example, the expression: 0.1 < ANY (c0, 0.4) could be simplified since 0.1 < 0.4.

Jira issue: CRDB-42979

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions