mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
- Add descriptions for custom rule set concepts - Addd reference docs for custom rule sets - Update existing docs for 4-level severity
780 B
780 B
Data transformation: defaultValue
Replaces values with strings.
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| map | Required | MapOfMaps | Maps columns to value maps |
map
String map is a JSON objects defining a string-to-value mapping for one or more columns. In the following example value 2 in column a will be replaced with the word 'two'. The same word two will be assigned to column b if it's value is 'w'.
Example 1
"transform": {
"type": "defaultValue",
"map": {
"a":{
"one" : 1,
"two" : 2,
"three": 3
},
"b":{
"one" : "o",
"two" : "w",
"three": "r"
}
}
}