[fix #49907935] comparison filter should join to other filters

This piece of code has not been merged to version-2 branch.
Without it the comparison filter can not be join to other filters.

Specs are passing.