man-group / ArcticDB

ArcticDB is a high performance, serverless DataFrame database built for the Python Data Science ecosystem.
http://arcticdb.io
Other
1.51k stars 93 forks source link

Bugfix 1818: Fix QueryBuilder equality checks #1819

Closed alexowens90 closed 2 months ago

alexowens90 commented 2 months ago

Reference Issues/PRs

Fixes #1818

Previous implementation did not work due to implementation of __eq__ on the ExpressionNode class being needed to behave not as a check but as a modifier, so that filters like this work:

q = QueryBuilder()
q = q[q["col"] == 0]