add query stats for new hash_writer