Fix the distinct pushed down for subquery
Merge pull request #1397 from VoltDB/ENG-distinct-bug

Fix the distinct pushed down for subquery