Data types in Dremio fall into two categories: primitive types such as INT and VARCHAR that hold single values, and semi-structured types like LIST, STRUCT, and MAP that hold complex values.
Arrays are lists of arbitrary size of any single type, indexed by non-negative integers, and are useful for holding sparse data.
Note: LIST and ARRAY are synonyms in Dremio, so you will see references to both in documentation, error messages, and function names.
Dremio Software v24.3 and the December 2023 update of Dremio Cloud introduce the functions below for manipulating array data.
Try Dremio’s Interactive Demo
Explore this interactive demo and see how Dremio's Intelligent Lakehouse enables Agentic AI
New Array Functions
Signature
Description
array_agg(expr)
Returns an array consisting of all values in expr.
array_append(A, E)
Returns a new array with E at the end of A.
array_distinct(A)
Returns a new array with only the distinct elements from A.
arrays_overlap(X, Y)
Returns whether X and Y have any elements in common.
array_prepend(E, A)
Returns a new array with E at the beginning of A.
array_to_string(A, S)
Returns A converted to a string by casting all values to strings and concatenating them using S to separate the elements.
set_union(X, Y, ...)
Returns an array of all the distinct values contained in each array of the input.
Ingesting Data Into Apache Iceberg Tables with Dremio: A Unified Path to Iceberg
By unifying data from diverse sources, simplifying data operations, and providing powerful tools for data management, Dremio stands out as a comprehensive solution for modern data needs. Whether you are a data engineer, business analyst, or data scientist, harnessing the combined power of Dremio and Apache Iceberg will undoubtedly be a valuable asset in your data management toolkit.
Oct 12, 2023·Product Insights from the Dremio Blog
Table-Driven Access Policies Using Subqueries
This blog helps you learn about table-driven access policies in Dremio Cloud and Dremio Software v24.1+.
Aug 31, 2023·Dremio Blog: News Highlights
Dremio Arctic is Now Your Data Lakehouse Catalog in Dremio Cloud
Dremio Arctic bring new features to Dremio Cloud, including Apache Iceberg table optimization and Data as Code.