Github user ran-z commented on a diff in the pull request:

    https://github.com/apache/incubator-ariatosca/pull/96#discussion_r109889547
  
    --- Diff: aria/storage/sql_mapi.py ---
    @@ -269,12 +279,24 @@ def _get_query(self,
             include, filters, sort, joins = 
self._get_joins_and_converted_columns(
                 include, filters, sort
             )
    +        filters = self._convert_operands(filters)
     
             query = self._get_base_query(include, joins)
             query = self._filter_query(query, filters)
             query = self._sort_query(query, sort)
             return query
     
    +    @staticmethod
    +    def _convert_operands(filters):
    +        for column, conditions in filters.items():
    +            if isinstance(conditions, dict):
    +                for predicate, operand in conditions.items():
    +                    if predicate in _predicates:
    --- End diff --
    
    else raise maybe?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to