Skip to content

Simplify expressions #77

Open
Open
@alukach

Description

@alukach

When combining Expr structs, it is easy to produce expressions with redundant or superfluous logic. We should be able to use Expr.reduce to boil down an expression to its minimal form.

e.g.

cql2.Expr('"properties.private" = false') + cql2.Expr('"properties.private" = false') == cql2.Expr('"properties.private" = false')
cql2.Expr("true") + cql2.Expr('"properties.private" = false') == cql2.Expr('"properties.private" = false')

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions