You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/data-factory/data-flow-script.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ ms.author: nimoolen
6
6
ms.service: data-factory
7
7
ms.topic: conceptual
8
8
ms.custom: seo-lt-2019
9
-
ms.date: 04/13/2020
9
+
ms.date: 05/06/2020
10
10
---
11
11
12
12
# Data flow script (DFS)
@@ -174,6 +174,21 @@ Use this code in your data flow script to create a new derived column called ```
174
174
derive(DWhash = sha1(Name,ProductNumber,Color))
175
175
```
176
176
177
+
You can also use this script below to generate a row hash using all columns that are present in your stream, without needing to name each column:
178
+
179
+
```
180
+
derive(DWhash = sha1(columns()))
181
+
```
182
+
183
+
### String_agg equivalent
184
+
This code will act like the T-SQL ```string_agg()``` function and will aggregate string values into an array. You can then cast that array into a string to use with SQL destinations.
0 commit comments