fix partition column handling in where clause