From b8e17772427e4419189794236ef992266f507737 Mon Sep 17 00:00:00 2001 From: armanaxh Date: Wed, 17 Jun 2020 21:50:06 +0430 Subject: [PATCH] Fix bound filter property #255 --- pydruid/utils/filters.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pydruid/utils/filters.py b/pydruid/utils/filters.py index 2442304f..2afdd04a 100644 --- a/pydruid/utils/filters.py +++ b/pydruid/utils/filters.py @@ -79,11 +79,11 @@ def __init__(self, extraction_function=None, ordering="lexicographic", **args): self.filter["filter"].update( { "dimension": args["dimension"], - "lower": args["lower"], - "lowerStrict": args["lowerStrict"], - "upper": args["upper"], - "upperStrict": args["upperStrict"], - "alphaNumeric": args["alphaNumeric"], + "lower": args.get("lower"), + "lowerStrict": args.get("lowerStrict", False), + "upper": args.get("upper"), + "upperStrict": args.get("upperStrict", False), + "alphaNumeric": args.get("alphaNumeric", False), "ordering": ordering, } )