Skip to content

Commit 29c671d

Browse files
authored
Merge pull request #235407 from kromerm/newflatten
Newflatten
2 parents 959a9dc + a3d10a4 commit 29c671d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

articles/data-factory/data-flow-flatten.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.service: data-factory
99
ms.subservice: data-flows
1010
ms.custom: synapse
1111
ms.topic: conceptual
12-
ms.date: 08/03/2022
12+
ms.date: 04/21/2023
1313
---
1414

1515
# Flatten transformation in mapping data flow
@@ -24,13 +24,15 @@ Use the flatten transformation to take array values inside hierarchical structur
2424
2525
## Configuration
2626

27-
The flatten transformation contains the following configuration settings
27+
The flatten transformation contains the following configuration settings.
2828

29-
:::image type="content" source="media/data-flow/flatten1.png" alt-text="Flatten settings":::
29+
:::image type="content" source="media/data-flow/flatten-new-001.png" alt-text="Screenshot that shows flatten settings." lightbox="media/data-flow/flatten-new-001.png":::
3030

3131
### Unroll by
3232

33-
Select an array to unroll. The output data will have one row per item in each array. If the unroll by array in the input row is null or empty, there will be one output row with unrolled values as null.
33+
Select an array to unroll. The output data will have one row per item in each array. If the unroll by array in the input row is null or empty, there will be one output row with unrolled values as null. You have the option to unroll more than one array per Flatten transformation. Click on the plus (+) button to include multiple arrays in a single Flatten transformation. You can use ADF data flow meta functions here including ```name``` and ```type``` and use pattern matching to unroll arrays that match those criteria. When including multiple arrays in a single Flatten transformation, your results will be a cartesian product of all of the possible array values.
34+
35+
:::image type="content" source="media/data-flow/flatten-new-002.png" alt-text="Screenshot that shows flatten results." lightbox="media/data-flow/flatten-new-002.png":::
3436

3537
### Unroll root
3638

@@ -58,7 +60,7 @@ Optional setting that tells the service to handle all subcolumns of a complex ob
5860

5961
### Hierarchy level
6062

61-
Choose the level of the hierarchy that you would like expand.
63+
Choose the level of the hierarchy that you would like to expand.
6264

6365
### Name matches (regex)
6466

39.8 KB
Loading
60.9 KB
Loading

0 commit comments

Comments
 (0)