Blog Post

Azure Data Factory Blog
1 MIN READ

Unroll multiple arrays in a single Flatten step in ADF

Mark Kromer's avatar
Mark Kromer
Icon for Microsoft rankMicrosoft
Apr 21, 2023

You can now easily unroll multiple arrays inside a single Flatten transformation in Azure Data Factory and Azure Synapse Analytics using a data pipeline with a Mapping Data Flow.

 

 

ADF and Synapse data flows gave a Flatten transformation to make it easy to unroll an array as part of your data transformation pipelines. We've updated the Flatten transformation to now allow for multiple arrays that can be unrolled in a single transformation step. This will make your ETL jobs much simpler with fewer transformation steps.

 

There is now a plus (+) next to the Unroll Array property where you can add more arrays to your list to unroll. You can also use ADF's meta functions like name and type to find arrays to unroll in your data using patterns. The resulting data will be joined together as a single result set as shown below.

 

 

 

 

Updated Apr 21, 2023
Version 1.0

1 Comment

  • Mark Kromer looking at the data preview output, seems like the second level of flattening isn't happening, the cities which is mapped to output column "orderitems" is still displayed as an array, it should have displayed each record for "Plainsboro" and "Jersey".