From 14a66f68776e17b291029a199b263e76b0513d38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9onard=20Binet?= Date: Mon, 5 Jul 2021 22:27:24 +0200 Subject: [PATCH] make mapping validation too laxist rather than too strict --- pandagg/node/aggs/abstract.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandagg/node/aggs/abstract.py b/pandagg/node/aggs/abstract.py index 0f899e3e..18b3152b 100644 --- a/pandagg/node/aggs/abstract.py +++ b/pandagg/node/aggs/abstract.py @@ -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): """