Skip to content

Filter equality matchers on the dynamo side#402

Merged
aaron7 merged 7 commits intomasterfrom
398-filter-labels-server-side-dynamodb
Apr 21, 2017
Merged

Filter equality matchers on the dynamo side#402
aaron7 merged 7 commits intomasterfrom
398-filter-labels-server-side-dynamodb

Conversation

@aaron7
Copy link
Contributor

@aaron7 aaron7 commented Apr 19, 2017

Fixes #398

Created some extra tests for the aws storage client and started filtering by range key.
Added simple field to IndexEntry which is then used to add the filter condition to dynamo if it exists

Tested locally with http_requests_total{job="cortex/ingester"}

Reverted change: #400

@jml
Copy link
Contributor

jml commented Apr 20, 2017

What's the difference between this & #400?

@aaron7 aaron7 changed the title Filter equality matchers on the dynamo side [WIP] Filter equality matchers on the dynamo side Apr 20, 2017
@aaron7
Copy link
Contributor Author

aaron7 commented Apr 20, 2017

We cannot filter the value using KeyConditions. I'm currently investigating how to filter by value.

@tomwilkie
Copy link
Contributor

I think you need one of these: http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Query.html#Query.FilterExpression

@aaron7 aaron7 changed the title [WIP] Filter equality matchers on the dynamo side Filter equality matchers on the dynamo side Apr 21, 2017
@aaron7 aaron7 requested a review from jml April 21, 2017 10:17
Copy link
Contributor

@jml jml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One suggestion. Please feel free to merge after addressing it (assuming tests are green).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably best to log a warning if we get a FilterExpression that is not supported, rather than silently skipping. Will probably save someone from a frustrating debugging session later.

@aaron7 aaron7 force-pushed the 398-filter-labels-server-side-dynamodb branch from ddb6e70 to 6cf3480 Compare April 21, 2017 11:47
@aaron7 aaron7 merged commit 69988be into master Apr 21, 2017
@aaron7 aaron7 deleted the 398-filter-labels-server-side-dynamodb branch April 21, 2017 12:03
@tomwilkie tomwilkie mentioned this pull request Nov 20, 2017
26 tasks
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

Successfully merging this pull request may close these issues.

3 participants