Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redundant FilterExpression in query of hierarchical sort key #419

Open
dmeehan1968 opened this issue Aug 7, 2024 · 0 comments
Open

Redundant FilterExpression in query of hierarchical sort key #419

dmeehan1968 opened this issue Aug 7, 2024 · 0 comments

Comments

@dmeehan1968
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant