Fix issue with INSERT .. SELECT and CREATE .. SELECT only loading data into a single shard