#2626 - DynamoDB - FilterExpression should ignore items with non-existent attribute
This commit is contained in:
parent
74ad2d7d3c
commit
9ce1ee49d7
2 changed files with 26 additions and 8 deletions
|
|
@ -979,8 +979,6 @@ class OpLessThan(Op):
|
|||
# In python3 None is not a valid comparator when using < or > so must be handled specially
|
||||
if lhs and rhs:
|
||||
return lhs < rhs
|
||||
elif lhs is None and rhs:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
|
|
@ -994,8 +992,6 @@ class OpGreaterThan(Op):
|
|||
# In python3 None is not a valid comparator when using < or > so must be handled specially
|
||||
if lhs and rhs:
|
||||
return lhs > rhs
|
||||
elif lhs and rhs is None:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
|
|
@ -1027,8 +1023,6 @@ class OpLessThanOrEqual(Op):
|
|||
# In python3 None is not a valid comparator when using < or > so must be handled specially
|
||||
if lhs and rhs:
|
||||
return lhs <= rhs
|
||||
elif lhs is None and rhs or lhs is None and rhs is None:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
|
|
@ -1042,8 +1036,6 @@ class OpGreaterThanOrEqual(Op):
|
|||
# In python3 None is not a valid comparator when using < or > so must be handled specially
|
||||
if lhs and rhs:
|
||||
return lhs >= rhs
|
||||
elif lhs and rhs is None or lhs is None and rhs is None:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue