소스 검색

HUE-6007 [metadata] Parent filtering can conflict with facet type as they are ORed together

Seems the correct way to go, if not:
type:field default.sample_07.salary are ORed together

Does not affect other logic
Romain Rigaux 8 년 전
부모
커밋
90ddba739c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      desktop/libs/metadata/src/metadata/navigator_client.py

+ 1 - 1
desktop/libs/metadata/src/metadata/navigator_client.py

@@ -164,7 +164,7 @@ class NavigatorApi(object):
       if query_clauses:
         filter_query = 'OR'.join(['(%s)' % clause for clause in query_clauses])
 
-      user_filter_clause = 'OR '.join(['(%s)' % f for f in user_filters]) or '*'
+      user_filter_clause = 'AND '.join(['(%s)' % f for f in user_filters]) or '*'
       source_filter_clause = 'OR'.join(['(%s:%s)' % ('type', entity_type) for entity_type in default_entity_types])
       if 's3' in sources:
         source_type_filter.append('sourceType:s3')