HIVE-7956: add a constructor to do the clone