Support insert_all and upsert_all using MERGE
#1312
Merged
insert_all and upsert_all using MERGE
#1312