fix bug in UNION query

Query planner was removing duplicate constants from the projection list.
That caused union to fail because columns was not matching.