druid-io / pydruid

A Python connector for Druid
Other
507 stars 198 forks source link

Bugfix when building `not` filter multiple times #62

Closed dakra closed 7 years ago

dakra commented 8 years ago

Make a copy of filter otherwise the field value (a :class:Filter) of the not filter will be replaced with a dict and on next call of build_filter with the same filter_obj variable will fail.

I didn't write an extra test but just modified the 'not filter test' to call 2 times Filter.build_filter.

nishantmonu51 commented 8 years ago

👍

fjy commented 7 years ago

👍