DRILL-1898: Add compare_to function for boolean type