fix exception when non unique columns in data source exist