Skip to content

Commit f2f4af1

Browse files
Merge pull request #215185 from kromerm/newfuncs2
Newfuncs2
2 parents 4c1eab8 + baf2664 commit f2f4af1

File tree

3 files changed

+49
-10
lines changed

3 files changed

+49
-10
lines changed

articles/data-factory/concepts-data-flow-debug-mode.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ With debug on, the Data Preview tab will light-up on the bottom panel. Without d
6868

6969
:::image type="content" source="media/data-flow/datapreview.png" alt-text="Data preview":::
7070

71+
You can sort columns in data preview and rearrange columns using drag and drop. Additionally, there is an export button on the top of the data preview panel that you can use to export the preview data to a CSV file for offline data exploration. You can use this feature to export up to 1,000 rows of preview data.
72+
7173
> [!NOTE]
7274
> File sources only limit the rows that you see, not the rows being read. For very large datasets, it is recommended that you take a small portion of that file and use it for your testing. You can select a temporary file in Debug Settings for each source that is a file dataset type.
7375

articles/data-factory/data-flow-conversion-functions.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: data-factory
88
ms.subservice: data-flows
99
ms.custom: synapse
1010
ms.topic: conceptual
11-
ms.date: 08/03/2022
11+
ms.date: 10/19/2022
1212
---
1313

1414
# Conversion functions in mapping data flow
@@ -25,6 +25,10 @@ Conversion functions are used to convert data and test for data types
2525

2626
| Conversion function | Task |
2727
|----|----|
28+
| [ascii](data-flow-expressions-usage.md#ascii) | Returns the numeric value of the input character. If the input string has more than one character, the numeric value of the first character is returned|
29+
| [char](data-flow-expressions-usage.md#char) | Returns the ascii character represented by the input number. If number is greater than 256, the result is equivalent to char(number % 256)|
30+
| [decode](data-flow-expressions-usage.md#decode) | Decodes the encoded input data into a string based on the given charset. A second (optional) argument can be used to specify which charset to use - 'US-ASCII', 'ISO-8859-1', 'UTF-8' (default), 'UTF-16BE', 'UTF-16LE', 'UTF-16'|
31+
| [encode](data-flow-expressions-usage.md#encode) | Encodes the input string data into binary based on a charset. A second (optional) argument can be used to specify which charset to use - 'US-ASCII', 'ISO-8859-1', 'UTF-8' (default), 'UTF-16BE', 'UTF-16LE', 'UTF-16'|
2832
| [isBitSet](data-flow-expressions-usage.md#isBitSet) | Checks if a bit position is set in this bitset|
2933
| [setBitSet](data-flow-expressions-usage.md#setBitSet) | Sets bit positions in this bitset|
3034
| [isBoolean](data-flow-expressions-usage.md#isBoolean) | Checks if the string value is a boolean value according to the rules of ``toBoolean()``|

articles/data-factory/data-flow-expressions-usage.md

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.service: data-factory
88
ms.subservice: data-flows
99
ms.custom: synapse
1010
ms.topic: conceptual
11-
ms.date: 08/03/2022
11+
ms.date: 10/19/2022
1212
---
1313

1414
# Data transformation expression usage in mapping data flow
@@ -119,18 +119,16 @@ Creates an array of items. All items should be of the same type. If no items are
119119
* ``'Washington'``
120120
___
121121

122-
<a name="assertErrorMessages" ></a>
122+
<a name="ascii" ></a>
123123

124-
### <code>assertErrorMessages</code>
125-
<code><b>assertErrorMessages() => map</b></code><br/><br/>
126-
Returns a map of all error messages for the row with assert ID as the key.
127-
128-
Examples
129-
* ``assertErrorMessages() => ['assert1': 'This row failed on assert1.', 'assert2': 'This row failed on assert2.']. In this example, at(assertErrorMessages(), 'assert1') would return 'This row failed on assert1.'``
124+
### <code>ascii</code>
125+
<code><b>ascii(<i>&lt;Input&gt;</i> : string) => number</b></code><br/><br/>
126+
Returns the numeric value of the input character. If the input string has more than one character, the numeric value of the first character is returned
127+
* ``ascii('A') -> 65``
128+
* ``ascii('a') -> 97``
130129

131130
___
132131

133-
134132
<a name="asin" ></a>
135133

136134
### <code>asin</code>
@@ -139,6 +137,16 @@ Calculates an inverse sine value.
139137
* ``asin(0) -> 0.0``
140138
___
141139

140+
<a name="assertErrorMessages" ></a>
141+
142+
### <code>assertErrorMessages</code>
143+
<code><b>assertErrorMessages() => map</b></code><br/><br/>
144+
Returns a map of all error messages for the row with assert ID as the key.
145+
146+
Examples
147+
* ``assertErrorMessages() => ['assert1': 'This row failed on assert1.', 'assert2': 'This row failed on assert2.']. In this example, at(assertErrorMessages(), 'assert1') would return 'This row failed on assert1.'``
148+
149+
___
142150

143151
<a name="associate" ></a>
144152

@@ -379,6 +387,14 @@ Returns the smallest integer not smaller than the number.
379387
* ``ceil(-0.1) -> 0``
380388
___
381389

390+
<a name="char" ></a>
391+
392+
### <code>char</code>
393+
<code><b>char(<i>&lt;Input&gt;</i> : number) => string</b></code><br/><br/>
394+
Returns the ascii character represented by the input number. If number is greater than 256, the result is equivalent to char(number % 256)
395+
* ``char(65) -> 'A'``
396+
* ``char(97) -> 'a'``
397+
___
382398

383399
<a name="coalesce" ></a>
384400

@@ -666,6 +682,14 @@ Duration in milliseconds for number of days.
666682
* ``days(2) -> 172800000L``
667683
___
668684

685+
<a name="decode" ></a>
686+
687+
### <code>decode</code>
688+
<code><b>decode(<i>&lt;Input&gt;</i> : any, <i>&lt;Charset&gt;</i> : string) => binary</b></code><br/><br/>
689+
Decodes the encoded input data into a string based on the given charset. A second (optional) argument can be used to specify which charset to use - 'US-ASCII', 'ISO-8859-1', 'UTF-8' (default), 'UTF-16BE', 'UTF-16LE', 'UTF-16'
690+
* ``decode(array(toByte(97),toByte(98),toByte(99)), 'US-ASCII') -> abc``
691+
___
692+
669693

670694
<a name="degrees" ></a>
671695

@@ -725,6 +749,15 @@ ___
725749

726750
## E
727751

752+
<a name="encode" ></a>
753+
754+
### <code>encode</code>
755+
<code><b>encode(<i>&lt;Input&gt;</i> : string, <i>&lt;Charset&gt;</i> : string) => binary</b></code><br/><br/>
756+
Encodes the input string data into binary based on a charset. A second (optional) argument can be used to specify which charset to use - 'US-ASCII', 'ISO-8859-1', 'UTF-8' (default), 'UTF-16BE', 'UTF-16LE', 'UTF-16'
757+
* ``encode('abc', 'US-ASCII') -> array(toByte(97),toByte(98),toByte(99))``
758+
___
759+
760+
Input string: string, Charset: string) => binary
728761
<a name="endsWith" ></a>
729762

730763
### <code>endsWith</code>

0 commit comments

Comments
 (0)