I am trying to create a query in python3 using sqlobject mapper. I have a requirement of filtering a custom field based on the output of bitise operation. Query looks like this:
query = sqlobject.AND(query,dl.<table_object>.q.anomalyType & alert_type == alert_type)
But when the actual SQL transformation happens, this bitwise & gets converted into "SQL AND", which changes the whole meaning of the query.
Can someone advise the right way to add bitwise operator in the query sqlobject in python3?