From 09ac77d979d455dccba6bb73fad73b0b0cd8de85 Mon Sep 17 00:00:00 2001 From: sawandas <38201746+sawandas@users.noreply.github.com> Date: Mon, 9 Apr 2018 12:10:44 +0530 Subject: [PATCH] Issue #1539 : Fixing dynamodb filtering (contains, begins with) Currently contains and begins with are not respecting the given filter value --- moto/dynamodb2/comparisons.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/moto/dynamodb2/comparisons.py b/moto/dynamodb2/comparisons.py index 68051460e..51d62fb83 100644 --- a/moto/dynamodb2/comparisons.py +++ b/moto/dynamodb2/comparisons.py @@ -176,6 +176,8 @@ def get_filter_expression(expr, names, values): next_token = six.next(token_iterator) while next_token != ')': + if next_token in values_map: + next_token = values_map[next_token] function_list.append(next_token) next_token = six.next(token_iterator)