Skip to content

Support serializing more deeply nested AND / OR expressions #4066

@alamb

Description

@alamb

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
There are certain expressions that are "too complex" to serialize. After @crepererum 's fix in #3968 they at least produce a proper error

It would be nice to at least support deeply nested AND expression trees which are common in certain machine generated queries

Describe the solution you'd like
Ideally we would follow @andygrove 's suggestion (which I remember seeing but can't find) and rather than serializing an expression like

((A AND B) AND C) AND D ...

into a tree that matches the Expr structure, instead into a structure like

AndExpr(Vec<Expr>)

Describe alternatives you've considered
N/a

Additional context
See #3968 and https://github.com/influxdata/influxdb_iox/pull/6020

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions