Improve planner's handling of boolean index columns

Improve planner's handling of boolean index columns

Edit