# Array\_agg() does not work

**URL:** <https://community.dremio.com/t/array-agg-does-not-work/13224>\
**Category:** Uncategorized\
**Created:** [October 6, 2025, 3:49pm UTC](https://community.dremio.com/t/array-agg-does-not-work/13224 "2025-10-06T15:49:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ken](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/ken/32/5784_2.png) [@Ken](https://community.dremio.com/u/Ken)\
**Post date:** [October 6, 2025, 3:49pm UTC](https://community.dremio.com/t/array-agg-does-not-work/13224/1 "2025-10-06T15:49:23Z")

</div>

I am using

```auto
Build
25.2.0-202410241428100111-a963b970
Edition
Community Edition
Build Time
10/24/2024 14:33:07
Change Hash
a963b9700065580085db55774de40257e6ea70cd
Change Time
10/24/2024 14:27:52

```

When I ran this SQL

```auto

with data as (

select 1 as some_col
UNION ALL

select 2
)

select array_agg(some_col) from data

```

I got this error

```auto
IllegalArgumentException: Error: detected inconsistent fixedBlocks in hashtable after unsuccessful batch extention

```

 ![image](https://us1.discourse-cdn.com/flex020/uploads/dremio/original/2X/4/4931c240bba0330d87c3caadd78aa31e21b140f2.png)

---

<div class="post-metadata">

**Author:** ![quangbilly79](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/quangbilly79/32/6549_2.png) [@quangbilly79](https://community.dremio.com/u/quangbilly79)\
**Post date:** [October 8, 2025, 10:02am UTC](https://community.dremio.com/t/array-agg-does-not-work/13224/2 "2025-10-08T10:02:26Z")

</div>

> [@Ken](#):
>
> ```auto
> with data as (
> 
> select 1 as some_col
> UNION ALL
> 
> select 2
> )
> 
> select array_agg(some_col) from data
> 
> ```

Mine still works fine (24.3.2 Community Edition + Yarn Engine)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/dremio/original/2X/3/361e3f9bd6267be83978612614065b8462f91896.png)

---

<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:** [October 12, 2025, 8:43pm UTC](https://community.dremio.com/t/array-agg-does-not-work/13224/3 "2025-10-12T20:43:09Z")

</div>

@Ken Mine works too on 26.0.2. Does it always happen? Can you try and upgrade and retry? Can we also get the job profile of the failed job?

---

<div class="post-metadata">

**Author:** ![dudivigi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/dudivigi/32/6766_2.png) [@dudivigi](https://community.dremio.com/u/dudivigi)\
**Post date:** [November 1, 2026, 6:40pm UTC](https://community.dremio.com/t/array-agg-does-not-work/13224/4 "2026-11-01T18:40:06Z")

</div>

This looks like an execution bug rather than a problem with the SQL: the query is tiny, and the error is from hash-table batch extension. The build hash is from October 2024, so first try the same query on the latest 25.2 patch or a newer supported release. If it still fails, attach the job profile and coordinator log around the failure; those should show which operator is throwing the exception.

---

<div class="post-metadata">

**Author:** ![dudivigi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/dudivigi/32/6766_2.png) [@dudivigi](https://community.dremio.com/u/dudivigi)\
**Post date:** [November 19, 2026, 10:11am UTC](https://community.dremio.com/t/array-agg-does-not-work/13224/5 "2026-11-19T10:11:50Z")

</div>

This looks like an execution bug rather than a problem with the SQL: the query is tiny, and the error is from hash-table batch extension. The build hash is from October 2024, so first try the same query on the latest 25.2 patch or a newer supported release. If it still fails, attach the job profile and coordinator log around the failure; those should show which operator is throwing the exception.
