David Warner smashed the highest one-day score in Australian domestic cricket history by hammering 197 off 144 balls for New South Wales.