Files
sql-server-samples/samples/manage/sql-assessment-api/docs/Reference/DataTransformation/toString.md
T
Aleksei Guzev 22b2374fc4 Update SQL Assessment APi documentation
- Add descriptions for custom rule set concepts
- Addd reference docs for custom rule sets
- Update existing docs for 4-level severity
2022-09-21 21:40:10 +03:00

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"
        }
    }
}