Edit: There was an error in my queries after this selection. Leaving here because the answer is interesting regardless.
I want to create a filter for MS SQL Server like:
WHERE ((this IS NOT NULL) or (that IS NOT NULL))
I tried with the replies given at a similar question:
filter((TAB1.c.this.isnot(None)) | (TAB2.c.that.isnot(None)))
filter(or_(TAB1.c.PERSONNE_ID.isnot(None), (TAB2.c.PERSONNE_ID.isnot(None)))
but with those options I can only get:
WHERE (this IS NOT NULL or that IS NOT NULL)
and in T-SQL this is a different filter from the one I want to obtain.
Any hints?