druid-io / pydruid

A Python connector for Druid
Other
506 stars 194 forks source link

Have Filter implement __eq__ #98

Open dylwylie opened 6 years ago

dylwylie commented 6 years ago

I'd like to write assertions to check that the filter's my code generates are valid. Can Filters implement eq to allow comparisons to work?

Eg.

>>> f1 = Filter(value=1, dimension="test")
>>> f2 = Filter(value=1, dimension="test")
>>> f1 == f2
False