# Apply flatten operation in dremio

**URL:** <https://community.dremio.com/t/apply-flatten-operation-in-dremio/11717>\
**Category:** Uncategorized\
**Created:** [April 17, 2024, 5:58am UTC](https://community.dremio.com/t/apply-flatten-operation-in-dremio/11717 "2024-04-17T05:58:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prasad-krishna-k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/prasad-krishna-k/32/5566_2.png) [@prasad-krishna-k](https://community.dremio.com/u/prasad-krishna-k)\
**Post date:** [April 17, 2024, 5:58am UTC](https://community.dremio.com/t/apply-flatten-operation-in-dremio/11717/1 "2024-04-17T05:58:07Z")

</div>

Getting the error while trying to flatten an array field

QUERY: select FLATTEN(location\_city) from “\<taerrorle\_name\>”

Error: Unexpected failure while reading hive table.

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [April 23, 2024, 2:00pm UTC](https://community.dremio.com/t/apply-flatten-operation-in-dremio/11717/2 "2024-04-23T14:00:33Z")

</div>

@prasad-krishna-k Does querying the column without FLATTEN help? Can you send a sample one cell of data from that field.?
