HIVE-2159: TableSample(percent ) uses int to store the intermediate size, need to use long instead. (Siying Dong via He Yongqiang)