Skip to content

Commit ca32024

Browse files
committed
acrolinx
1 parent 41ce9f0 commit ca32024

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

articles/data-factory/concepts-data-flow-column-pattern.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,25 @@ Each rule-based mapping requires two inputs: the condition on which to match by
4848

4949
![rule-based mapping](media/data-flow/rule-based-mapping.png "Rule-based mapping")
5050

51-
Use `$$` syntax to reference the input name of a matched column. Using the above image as an example, say a user wants to match on all string columns whose names are shorter than six characters. If one incoming column was named `test`, the expression `$$ + '_short'` will rename the column `test_short`. If thats the only mapping that exists, all columns that don't meet the condition will be dropped from the outputted data.
51+
Use `$$` syntax to reference the input name of a matched column. Using the above image as an example, say a user wants to match on all string columns whose names are shorter than six characters. If one incoming column was named `test`, the expression `$$ + '_short'` will rename the column `test_short`. If that's the only mapping that exists, all columns that don't meet the condition will be dropped from the outputted data.
5252

5353
Patterns match both drifted and defined columns. To see which defined columns are mapped by a rule, click the eyeglasses icon next to the rule. Verify your output using data preview.
5454

5555
### Regex mapping
5656

57-
If you click the downward chevron icon, you can specify a regex mapping condition. A regex mapping condition matches all column names that match the specified regex condition. This can be used in combination with standard rule-based mappings.
57+
If you click the downward chevron icon, you can specify a regex-mapping condition. A regex-mapping condition matches all column names that match the specified regex condition. This can be used in combination with standard rule-based mappings.
5858

5959
![rule-based mapping](media/data-flow/regex-matching.png "Rule-based mapping")
6060

6161
The above example matches on regex pattern `(r)` or any column name that contains a lower case r. Similar to standard rule-based mapping, all matched columns are altered by the condition on the right using `$$` syntax.
6262

6363
### Rule-based hierarchies
6464

65-
If your defined projection has a hierarchy, you can use rule-based mapping to map the hierarchies sub-columns. Specify a matching condition and the complex column whose sub-columns you wish to map. Every matched sub-column will be outputted using the 'Name as' rule specified on the right.
65+
If your defined projection has a hierarchy, you can use rule-based mapping to map the hierarchies subcolumns. Specify a matching condition and the complex column whose subcolumns you wish to map. Every matched subcolumn will be outputted using the 'Name as' rule specified on the right.
6666

6767
![rule-based mapping](media/data-flow/rule-based-hierarchy.png "Rule-based mapping")
6868

69-
The above example matches on all sub-columns of complex column `a`. `a` contains two sub-columns `b` and `c`. The output schema will include two columns `b` and `c` as the 'Name as' condition is `$$`.
69+
The above example matches on all subcolumns of complex column `a`. `a` contains two subcolumns `b` and `c`. The output schema will include two columns `b` and `c` as the 'Name as' condition is `$$`.
7070

7171
## Pattern matching expression values.
7272

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,22 @@ ms.date: 03/18/2020
1313

1414
Use the select transformation to rename, drop, or reorder columns. This transformation doesn't alter row data, but chooses which columns are propagated downstream. This process is called
1515

16-
In a select transformation, users can specify fixed mappings, use patterns to do rule-based mapping or enable auto mapping. Fixed and rule-based mappings can both be used within the same select transformation. If a column doesn't match one of the defined mappings, it will be dropped.
16+
In a select transformation, users can specify fixed mappings, use patterns to do rule-based mapping, or enable auto mapping. Fixed and rule-based mappings can both be used within the same select transformation. If a column doesn't match one of the defined mappings, it will be dropped.
1717

1818
## Fixed mapping
1919

20-
If there are less than 50 columns defined in your projection, all defined columns will have a fixed mapping by default. A fixed mapping takes a defined, incoming column and maps it an exact name.
20+
If there are fewer than 50 columns defined in your projection, all defined columns will have a fixed mapping by default. A fixed mapping takes a defined, incoming column and maps it an exact name.
2121

2222
![Fixed mapping](media/data-flow/fixedmapping.png "Fixed mapping")
2323

2424
> [!NOTE]
2525
> You can't map or rename a drifted column using a fixed mapping
2626
27-
### Mapping hierarchal columns
27+
### Mapping hierarchical columns
2828

29-
Fixed mappings can be used to map a sub-column of a hierarchal column to a top level column. If you have a defined hierarchy, use the column dropdown to select a sub-column. The select transformation will create a new column with the value and data type of the sub-column.
29+
Fixed mappings can be used to map a subcolumn of a hierarchical column to a top-level column. If you have a defined hierarchy, use the column dropdown to select a subcolumn. The select transformation will create a new column with the value and data type of the subcolumn.
3030

31-
![Hierarchal mapping](media/data-flow/select-hierarchy.png "Hierarchal mapping")
31+
![hierarchical mapping](media/data-flow/select-hierarchy.png "hierarchical mapping")
3232

3333
## Rule-based mapping
3434

@@ -42,13 +42,13 @@ Each rule-based mapping requires two inputs: the condition on which to match by
4242

4343
![rule-based mapping](media/data-flow/rule-based-mapping.png "Rule-based mapping")
4444

45-
Use `$$` syntax to reference the input name of a matched column. Using the above image as an example, say a user wants to match on all string columns whose names are shorter than six characters. If one incoming column was named `test`, the expression `$$ + '_short'` will rename the column `test_short`. If thats the only mapping that exists, all columns that don't meet the condition will be dropped from the outputted data.
45+
Use `$$` syntax to reference the input name of a matched column. Using the above image as an example, say a user wants to match on all string columns whose names are shorter than six characters. If one incoming column was named `test`, the expression `$$ + '_short'` will rename the column `test_short`. If that's the only mapping that exists, all columns that don't meet the condition will be dropped from the outputted data.
4646

4747
Patterns match both drifted and defined columns. To see which defined columns are mapped by a rule, click the eyeglasses icon next to the rule. Verify your output using data preview.
4848

4949
### Regex mapping
5050

51-
If you click the downward chevron icon, you can specify a regex mapping condition. A regex mapping condition matches all column names that match the specified regex condition. This can be used in combination with standard rule-based mappings.
51+
If you click the downward chevron icon, you can specify a regex-mapping condition. A regex-mapping condition matches all column names that match the specified regex condition. This can be used in combination with standard rule-based mappings.
5252

5353
![rule-based mapping](media/data-flow/regex-matching.png "Rule-based mapping")
5454

@@ -58,23 +58,23 @@ If you have multiple regex matches in your column name, you can refer to specifi
5858

5959
### Rule-based hierarchies
6060

61-
If your defined projection has a hierarchy, you can use rule-based mapping to map the hierarchies sub-columns. Specify a matching condition and the complex column whose sub-columns you wish to map. Every matched sub-column will be outputted using the 'Name as' rule specified on the right.
61+
If your defined projection has a hierarchy, you can use rule-based mapping to map the hierarchies subcolumns. Specify a matching condition and the complex column whose subcolumns you wish to map. Every matched subcolumn will be outputted using the 'Name as' rule specified on the right.
6262

6363
![rule-based mapping](media/data-flow/rule-based-hierarchy.png "Rule-based mapping")
6464

65-
The above example matches on all sub-columns of complex column `a`. `a` contains two sub-columns `b` and `c`. The output schema will include two columns `b` and `c` as the 'Name as' condition is `$$`.
65+
The above example matches on all subcolumns of complex column `a`. `a` contains two subcolumns `b` and `c`. The output schema will include two columns `b` and `c` as the 'Name as' condition is `$$`.
6666

6767
### Parameterization
6868

69-
You can parameterize field mapping using rule-based mapping. Use the keyword ```name``` to match incoming column names against a parameter. For example, if you have a data flow parameter ```mycolumn```, you can create a rule that matches any column name that is equal to ```mycolumn```. You can rename the matched column to a hard-coded string such as 'business key' and reference it explicitly. In this example, the matching condition is ```name == $mycolumn``` and the name condition is 'business key'.
69+
You can parameterize column names using rule-based mapping. Use the keyword ```name``` to match incoming column names against a parameter. For example, if you have a data flow parameter ```mycolumn```, you can create a rule that matches any column name that is equal to ```mycolumn```. You can rename the matched column to a hard-coded string such as 'business key' and reference it explicitly. In this example, the matching condition is ```name == $mycolumn``` and the name condition is 'business key'.
7070

7171
## Auto mapping
7272

73-
When adding a select transformation, **Auto mapping** can be enabled by switching the Auto mapping slider. With auto mapping, the select transformation maps all incoming columns, excluding duplicates, with the same name as their input. This will include drifted columns which means the output data may contain columns not defined in your schema. For more information on drifted columns, see [schema drift](concepts-data-flow-schema-drift.md).
73+
When adding a select transformation, **Auto mapping** can be enabled by switching the Auto mapping slider. With auto mapping, the select transformation maps all incoming columns, excluding duplicates, with the same name as their input. This will include drifted columns, which means the output data may contain columns not defined in your schema. For more information on drifted columns, see [schema drift](concepts-data-flow-schema-drift.md).
7474

7575
![Auto mapping](media/data-flow/automap.png "Auto mapping")
7676

77-
With auto mapping on, the select transformation will honor the skip duplicate settings that are enabled and provide a new alias for the existing columns. Aliasing is useful when doing multiple joins or lookups on the same stream and in self-join scenarios.
77+
With auto mapping on, the select transformation will honor the skip duplicate settings and provide a new alias for the existing columns. Aliasing is useful when doing multiple joins or lookups on the same stream and in self-join scenarios.
7878

7979
## Duplicate columns
8080

@@ -84,7 +84,7 @@ By default, the select transformation drops duplicate columns in both the input
8484

8585
## Ordering of columns
8686

87-
The order of mappings determines the order of the output columns. If an input column is mapped multiple times, only the first mapping will be honored. For any duplicate column dropping, the first match will kept.
87+
The order of mappings determines the order of the output columns. If an input column is mapped multiple times, only the first mapping will be honored. For any duplicate column dropping, the first match will be kept.
8888

8989
## Data flow script
9090

@@ -93,7 +93,7 @@ The order of mappings determines the order of the output columns. If an input co
9393
```
9494
<incomingStream>
9595
select(mapColumn(
96-
each(<hierarchalColumn>, match(<matchCondition>), <nameCondition> = $$), ## Hierarchal rule-based matching
96+
each(<hierarchicalColumn>, match(<matchCondition>), <nameCondition> = $$), ## hierarchical rule-based matching
9797
<fixedColumn>, ## fixed mapping, no rename
9898
<renamedFixedColumn> = <fixedColumn>, ## fixed mapping, rename
9999
each(match(<matchCondition>), <nameCondition> = $$), ## rule-based mapping
@@ -105,7 +105,7 @@ The order of mappings determines the order of the output columns. If an input co
105105

106106
### Example
107107

108-
Below is an example of a select mapping and an accompanying data flow script with it:
108+
Below is an example of a select mapping and its data flow script:
109109

110110
![Select script example](media/data-flow/select-script-example.png "Select script example")
111111

0 commit comments

Comments
 (0)