Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bound filter property #227

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

armanaxh
Copy link

Fixes #225

"upper": args["upper"],
"upperStrict": args["upperStrict"],
"alphaNumeric": args["alphaNumeric"],
"lower": args.get("lower"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does lower and upper work with None? Per the bound filter documentation it seems these are both optional however there is no default specified.

I think it would be prudent to check if a value of None is equivalent to not providing the key.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked this, and it does not seem to be a problem, and they are equivalent.

Even in the Band class, Previously considered equal. HERE

@john-bodley
Copy link
Contributor

@armanaxh I'm not that well versed with the native Druid REST API (I'm more familiar with Druid SQL) and thus I don't really have a strong opinion with regards to which approach is best.

Note it would good to add some unit tests to cover both the existence and non-existence of the fields.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bound filter property is required
2 participants