converting sets to non set type when performing query or scans