# Viewing all values of an entry field

**URL:** <https://discuss.hail.is/t/viewing-all-values-of-an-entry-field/2870>\
**Category:** Hail Query & hailctl\
**Created:** [September 30, 2022, 4:47pm UTC](https://discuss.hail.is/t/viewing-all-values-of-an-entry-field/2870 "2022-09-30T16:47:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lb61](https://avatars.discourse-cdn.com/v4/letter/l/9fc348/32.png) [@lb61](https://discuss.hail.is/u/lb61)\
**Post date:** [September 30, 2022, 4:47pm UTC](https://discuss.hail.is/t/viewing-all-values-of-an-entry-field/2870/1 "2022-09-30T16:47:49Z")

</div>

Hi! I’m a new user, and I’ve encountered an entry field ‘RNC’ while working with the UK Biobank WES data. This is a basic question I am sure, but how can I easily view all of the different possible values of RNC in my matrix table?

I know RNC is an array of strings, but beyond that, I’m having a hard time aggregating all possible values so I can get a sense of what this field represents.

I tried running `mt.aggregate_entries(hl.agg.counter(mt.RNC))` but I got a type error (TypeError: unhashable type: ‘list’).

Apologies if this is very elementary, I’m just having a hard time finding answers in the Hail documentation!

---

<div class="post-metadata">

**Author:** ![danking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/danking/32/43_2.png) [@danking](https://discuss.hail.is/u/danking)\
**Post date:** [October 4, 2022, 2:05pm UTC](https://discuss.hail.is/t/viewing-all-values-of-an-entry-field/2870/2 "2022-10-04T14:05:24Z")

</div>

Hey @lb61!

What version of Hail are you using? I believe this issue was fixed as far back as 0.2.63. If you update to the latest version of Hail it should not be a problem.

Can you share a bit about how you got such an old version of Hail?

---

<div class="post-metadata">

**Author:** ![lb61](https://avatars.discourse-cdn.com/v4/letter/l/9fc348/32.png) [@lb61](https://discuss.hail.is/u/lb61)\
**Post date:** [October 4, 2022, 2:27pm UTC](https://discuss.hail.is/t/viewing-all-values-of-an-entry-field/2870/3 "2022-10-04T14:27:30Z")

</div>

Thanks for the response! I’m using 0.2.78, which is the version configured by DNAnexus for use in JupyterLab.

---

<div class="post-metadata">

**Author:** ![danking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/danking/32/43_2.png) [@danking](https://discuss.hail.is/u/danking)\
**Post date:** [October 4, 2022, 2:29pm UTC](https://discuss.hail.is/t/viewing-all-values-of-an-entry-field/2870/4 "2022-10-04T14:29:54Z")

</div>

Ah, I see the issue now. Let me dig into this.

---

<div class="post-metadata">

**Author:** ![tpoterba](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/tpoterba/32/61_2.png) [@tpoterba](https://discuss.hail.is/u/tpoterba)\
**Post date:** [October 4, 2022, 2:30pm UTC](https://discuss.hail.is/t/viewing-all-values-of-an-entry-field/2870/5 "2022-10-04T14:30:17Z")

</div>

Oof. You could work around the issue with:

```python
mt.aggregate_entries(hl.agg.counter(hl.delimit(mt.RNC)))

```

`hl.delimit` will convert an array value to a string similarly to `','.join(values)` in python. Default delimiter is comma, can be overriden.

---

<div class="post-metadata">

**Author:** ![danking](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/danking/32/43_2.png) [@danking](https://discuss.hail.is/u/danking)\
**Post date:** [October 4, 2022, 5:56pm UTC](https://discuss.hail.is/t/viewing-all-values-of-an-entry-field/2870/6 "2022-10-04T17:56:52Z")

</div>

And I have a PR to fix this issue. I expect it to land in 0.2.102. I heartily encourage you to ask the DNANexus folks to update the version of Hail once that’s released!
