Skip to content

Commit

Permalink
make mapping validation too laxist rather than too strict
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardbinet committed Jul 5, 2021
1 parent 159f204 commit 14a66f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pandagg/node/aggs/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ def valid_on_field_type(cls, field_type):
return field_type in cls.WHITELISTED_MAPPING_TYPES
if cls.BLACKLISTED_MAPPING_TYPES is not None:
return field_type not in cls.BLACKLISTED_MAPPING_TYPES
return False
# by default laxist
# TODO - constraint to only allowed types
return True

def to_dict(self):
"""
Expand Down

0 comments on commit 14a66f6

Please sign in to comment.