8000 Redundant FilterExpression in query of hierarchical sort key · Issue #419 · tywalch/electrodb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Redundant FilterExpression in query of hierarchical sort key #419
Open
@dmeehan1968

Description

@dmeehan1968

Describe the bug

I was experimenting with creating a hierarchical sort key and then doing a query, and found that EDB adds what appears to be a redundant FilterExpression to the generated query command.

Unless I'm overlooking something, the filter is redundant as the constructed sort key can only match exactly on the given kingdom. Playground

If you move 'kingdom' into the PK the filter expression goes away. Playground

If you add another attribute into the schema and use that in the PK, the problem remains. Playground

ElectroDB Version

2.14.3 (and playground)

ElectroDB Playground Link

ElectroDB Playground (same as first link above)

Expected behavior

No redundancy in generated commands

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0