Skip to content

[BUG] Reverse operators for <, <=, >, >= defined incorrectly  #510

Open
@sophia-bq

Description

@sophia-bq

The REVERSE_OPERATORS in DocumentDbRules are defined in a way that returns unexpected results.

Ex. For a column val [1, 2, 3] select val from int_table where 2 >= val should return [1, 2]
Currently, the driver reverses the operator >= to be '$lt' which is the same as select val from int_table where val < 2 which returns [1]
The correct reverse operator is '$lte' which should return [1, 2].

This should be a very quick fix, I made the change locally myself and it looks like this: Reverse Operator Change

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions