# JDBC property for flattening complex types to a string?

**URL:** <https://community.dremio.com/t/jdbc-property-for-flattening-complex-types-to-a-string/13359>\
**Category:** Uncategorized\
**Created:** [June 8, 2026, 7:36pm UTC](https://community.dremio.com/t/jdbc-property-for-flattening-complex-types-to-a-string/13359 "2026-06-08T19:36:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Gossett](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/justin_gossett/32/6699_2.png) [@Justin\_Gossett](https://community.dremio.com/u/Justin_Gossett)\
**Post date:** [June 8, 2026, 7:36pm UTC](https://community.dremio.com/t/jdbc-property-for-flattening-complex-types-to-a-string/13359/1 "2026-06-08T19:36:18Z")

</div>

For client applications that cannot handle complex types, does there exist a JDBC connection property for Dremio to flatten complex types to a string?

---

<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:** [July 30, 2026, 6:32pm UTC](https://community.dremio.com/t/jdbc-property-for-flattening-complex-types-to-a-string/13359/2 "2026-07-30T18:32:21Z")

</div>

@Justin_Gossett Complex types LIST/ARRAY can be flattened using Dremio’s SQL flatten or UI option unnest. when you say JDBC property do you mean as part of connect string or you are looking for the SQL?

You can use FLATTEN from a JDBC tool as part of your SQL

> **[FLATTEN | Dremio Documentation](https://docs.dremio.com/current/reference/sql/sql-functions/functions/FLATTEN/)**
>
> Categories: Semi-Structured Data

 ![Screenshot 2026-07-30 at 11.30.29 AM](https://us1.discourse-cdn.com/flex020/uploads/dremio/original/2X/5/579f5a576c9e70607004eb81a752d5ee8920bbef.png)

---

<div class="post-metadata">

**Author:** ![xexodula](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/xexodula/32/6771_2.png) [@xexodula](https://community.dremio.com/u/xexodula)\
**Post date:** [October 29, 2026, 11:20am UTC](https://community.dremio.com/t/jdbc-property-for-flattening-complex-types-to-a-string/13359/3 "2026-10-29T11:20:54Z")

</div>

FLATTEN`/`UNNEST` expands an array into rows; it doesn’t serialize a LIST or STRUCT into a string. I’m not aware of a JDBC connection property for that conversion. You’d need to serialize or cast the value in the SQL query, or expose a view with a client-compatible schema; check which conversion Dremio supports for your type and version.
