Fix union to have matching select clauses

Change-Id: I01f6824f661eb9dd96fc3657220431d5bb6484fd