Skip to content

Commit 99165a5

Browse files
authored
C189395 Adding Hard Breaks before code
This PR complements this one #108486
1 parent 7fb28cf commit 99165a5

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

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

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -736,12 +736,12 @@ Sorts the array using the provided predicate function. Sort expects a reference
736736
___
737737
### <code>soundex</code>
738738
<code><b>soundex(<i>&lt;value1&gt;</i> : string) => string</b></code><br/><br/>
739-
Gets the soundex code for the string
739+
Gets the soundex code for the string
740740
* ``soundex('genius') -> 'G520'``
741741
___
742742
### <code>split</code>
743743
<code><b>split(<i>&lt;string to split&gt;</i> : string, <i>&lt;split characters&gt;</i> : string) => array</b></code><br/><br/>
744-
Splits a string based on a delimiter and returns an array of strings
744+
Splits a string based on a delimiter and returns an array of strings
745745
* ``split('bojjus,guchus,dumbo', ',') -> ['bojjus', 'guchus', 'dumbo']``
746746
* ``split('bojjus,guchus,dumbo', '|') -> ['bojjus,guchus,dumbo']``
747747
* ``split('bojjus, guchus, dumbo', ', ') -> ['bojjus', 'guchus', 'dumbo']``
@@ -752,112 +752,112 @@ Splits a string based on a delimiter and returns an array of strings
752752
___
753753
### <code>sqrt</code>
754754
<code><b>sqrt(<i>&lt;value1&gt;</i> : number) => double</b></code><br/><br/>
755-
Calculates the square root of a number
755+
Calculates the square root of a number
756756
* ``sqrt(9) -> 3``
757757
___
758758
### <code>startsWith</code>
759759
<code><b>startsWith(<i>&lt;string&gt;</i> : string, <i>&lt;substring to check&gt;</i> : string) => boolean</b></code><br/><br/>
760-
Checks if the string starts with the supplied string
760+
Checks if the string starts with the supplied string
761761
* ``startsWith('dumbo', 'du') -> true``
762762
___
763763
### <code>subDays</code>
764764
<code><b>subDays(<i>&lt;date/timestamp&gt;</i> : datetime, <i>&lt;days to subtract&gt;</i> : integral) => datetime</b></code><br/><br/>
765-
Subtract months from a date or timestamp. Same as the - operator for date
765+
Subtract months from a date or timestamp. Same as the - operator for date
766766
* ``subDays(toDate('2016-08-08'), 1) -> toDate('2016-08-07')``
767767
___
768768
### <code>subMonths</code>
769769
<code><b>subMonths(<i>&lt;date/timestamp&gt;</i> : datetime, <i>&lt;months to subtract&gt;</i> : integral) => datetime</b></code><br/><br/>
770-
Subtract months from a date or timestamp
770+
Subtract months from a date or timestamp
771771
* ``subMonths(toDate('2016-09-30'), 1) -> toDate('2016-08-31')``
772772
___
773773
### <code>substring</code>
774774
<code><b>substring(<i>&lt;string to subset&gt;</i> : string, <i>&lt;from 1-based index&gt;</i> : integral, [<i>&lt;number of characters&gt;</i> : integral]) => string</b></code><br/><br/>
775-
Extracts a substring of a certain length from a position. Position is 1 based. If the length is omitted, it is defaulted to end of the string
775+
Extracts a substring of a certain length from a position. Position is 1 based. If the length is omitted, it is defaulted to end of the string
776776
* ``substring('Cat in the hat', 5, 2) -> 'in'``
777777
* ``substring('Cat in the hat', 5, 100) -> 'in the hat'``
778778
* ``substring('Cat in the hat', 5) -> 'in the hat'``
779779
* ``substring('Cat in the hat', 100, 100) -> ''``
780780
___
781781
### <code>tan</code>
782782
<code><b>tan(<i>&lt;value1&gt;</i> : number) => double</b></code><br/><br/>
783-
Calculates a tangent value
783+
Calculates a tangent value
784784
* ``tan(0) -> 0.0``
785785
___
786786
### <code>tanh</code>
787787
<code><b>tanh(<i>&lt;value1&gt;</i> : number) => double</b></code><br/><br/>
788-
Calculates a hyperbolic tangent value
788+
Calculates a hyperbolic tangent value
789789
* ``tanh(0) -> 0.0``
790790
___
791791
### <code>toBase64</code>
792792
<code><b>toBase64(<i>&lt;value1&gt;</i> : string) => string</b></code><br/><br/>
793-
Encodes the given string in base64
793+
Encodes the given string in base64
794794
* ``toBase64('bojjus') -> 'Ym9qanVz'``
795795
___
796796
### <code>toBinary</code>
797797
<code><b>toBinary(<i>&lt;value1&gt;</i> : any) => binary</b></code><br/><br/>
798-
Converts any numeric/date/timestamp/string to binary representation
798+
Converts any numeric/date/timestamp/string to binary representation
799799
* ``toBinary(3) -> [0x11]``
800800
___
801801
### <code>toBoolean</code>
802802
<code><b>toBoolean(<i>&lt;value1&gt;</i> : string) => boolean</b></code><br/><br/>
803-
Converts a value of ('t', 'true', 'y', 'yes', '1') to true and ('f', 'false', 'n', 'no', '0') to false and NULL for any other value
803+
Converts a value of ('t', 'true', 'y', 'yes', '1') to true and ('f', 'false', 'n', 'no', '0') to false and NULL for any other value
804804
* ``toBoolean('true') -> true``
805805
* ``toBoolean('n') -> false``
806806
* ``isNull(toBoolean('truthy')) -> true``
807807
___
808808
### <code>toDate</code>
809809
<code><b>toDate(<i>&lt;string&gt;</i> : any, [<i>&lt;date format&gt;</i> : string]) => date</b></code><br/><br/>
810-
Converts input date string to date using an optional input date format. Refer Java's SimpleDateFormat for available formats. If the input date format is omitted, default format is yyyy-[M]M-[d]d. Accepted formats are :[ yyyy, yyyy-[M]M, yyyy-[M]M-[d]d, yyyy-[M]M-[d]dT* ]
810+
Converts input date string to date using an optional input date format. Refer Java's SimpleDateFormat for available formats. If the input date format is omitted, default format is yyyy-[M]M-[d]d. Accepted formats are :[ yyyy, yyyy-[M]M, yyyy-[M]M-[d]d, yyyy-[M]M-[d]dT* ]
811811
* ``toDate('2012-8-18') -> toDate('2012-08-18')``
812812
* ``toDate('12/18/2012', 'MM/dd/yyyy') -> toDate('2012-12-18')``
813813
___
814814
### <code>toDecimal</code>
815815
<code><b>toDecimal(<i>&lt;value&gt;</i> : any, [<i>&lt;precision&gt;</i> : integral], [<i>&lt;scale&gt;</i> : integral], [<i>&lt;format&gt;</i> : string], [<i>&lt;locale&gt;</i> : string]) => decimal(10,0)</b></code><br/><br/>
816-
Converts any numeric or string to a decimal value. If precision and scale are not specified, it is defaulted to (10,2).An optional Java decimal format can be used for the conversion. An optional locale format in the form of BCP47 language like en-US, de, zh-CN
816+
Converts any numeric or string to a decimal value. If precision and scale are not specified, it is defaulted to (10,2).An optional Java decimal format can be used for the conversion. An optional locale format in the form of BCP47 language like en-US, de, zh-CN
817817
* ``toDecimal(123.45) -> 123.45``
818818
* ``toDecimal('123.45', 8, 4) -> 123.4500``
819819
* ``toDecimal('$123.45', 8, 4,'$###.00') -> 123.4500``
820820
* ``toDecimal('Ç123,45', 10, 2, 'Ç###,##', 'de') -> 123.45``
821821
___
822822
### <code>toDouble</code>
823823
<code><b>toDouble(<i>&lt;value&gt;</i> : any, [<i>&lt;format&gt;</i> : string], [<i>&lt;locale&gt;</i> : string]) => double</b></code><br/><br/>
824-
Converts any numeric or string to a double value. An optional Java decimal format can be used for the conversion. An optional locale format in the form of BCP47 language like en-US, de, zh-CN
824+
Converts any numeric or string to a double value. An optional Java decimal format can be used for the conversion. An optional locale format in the form of BCP47 language like en-US, de, zh-CN
825825
* ``toDouble(123.45) -> 123.45``
826826
* ``toDouble('123.45') -> 123.45``
827827
* ``toDouble('$123.45', '$###.00') -> 123.45``
828828
* ``toDouble('Ç123,45', 'Ç###,##', 'de') -> 123.45``
829829
___
830830
### <code>toFloat</code>
831831
<code><b>toFloat(<i>&lt;value&gt;</i> : any, [<i>&lt;format&gt;</i> : string], [<i>&lt;locale&gt;</i> : string]) => float</b></code><br/><br/>
832-
Converts any numeric or string to a float value. An optional Java decimal format can be used for the conversion. Truncates any double
832+
Converts any numeric or string to a float value. An optional Java decimal format can be used for the conversion. Truncates any double
833833
* ``toFloat(123.45) -> 123.45f``
834834
* ``toFloat('123.45') -> 123.45f``
835835
* ``toFloat('$123.45', '$###.00') -> 123.45f``
836836
___
837837
### <code>toInteger</code>
838838
<code><b>toInteger(<i>&lt;value&gt;</i> : any, [<i>&lt;format&gt;</i> : string], [<i>&lt;locale&gt;</i> : string]) => integer</b></code><br/><br/>
839-
Converts any numeric or string to an integer value. An optional Java decimal format can be used for the conversion. Truncates any long, float, double
839+
Converts any numeric or string to an integer value. An optional Java decimal format can be used for the conversion. Truncates any long, float, double
840840
* ``toInteger(123) -> 123``
841841
* ``toInteger('123') -> 123``
842842
* ``toInteger('$123', '$###') -> 123``
843843
___
844844
### <code>toLong</code>
845845
<code><b>toLong(<i>&lt;value&gt;</i> : any, [<i>&lt;format&gt;</i> : string], [<i>&lt;locale&gt;</i> : string]) => long</b></code><br/><br/>
846-
Converts any numeric or string to a long value. An optional Java decimal format can be used for the conversion. Truncates any float, double
846+
Converts any numeric or string to a long value. An optional Java decimal format can be used for the conversion. Truncates any float, double
847847
* ``toLong(123) -> 123``
848848
* ``toLong('123') -> 123``
849849
* ``toLong('$123', '$###') -> 123``
850850
___
851851
### <code>toShort</code>
852852
<code><b>toShort(<i>&lt;value&gt;</i> : any, [<i>&lt;format&gt;</i> : string], [<i>&lt;locale&gt;</i> : string]) => short</b></code><br/><br/>
853-
Converts any numeric or string to a short value. An optional Java decimal format can be used for the conversion. Truncates any integer, long, float, double
853+
Converts any numeric or string to a short value. An optional Java decimal format can be used for the conversion. Truncates any integer, long, float, double
854854
* ``toShort(123) -> 123``
855855
* ``toShort('123') -> 123``
856856
* ``toShort('$123', '$###') -> 123``
857857
___
858858
### <code>toString</code>
859859
<code><b>toString(<i>&lt;value&gt;</i> : any, [<i>&lt;number format/date format&gt;</i> : string]) => string</b></code><br/><br/>
860-
Converts a primitive datatype to a string. For numbers and date a format can be specified. If unspecified the system default is picked.Java decimal format is used for numbers. Refer to Java SimpleDateFormat for all possible date formats; the default format is yyyy-MM-dd
860+
Converts a primitive datatype to a string. For numbers and date a format can be specified. If unspecified the system default is picked.Java decimal format is used for numbers. Refer to Java SimpleDateFormat for all possible date formats; the default format is yyyy-MM-dd
861861
* ``toString(10) -> '10'``
862862
* ``toString('engineer') -> 'engineer'``
863863
* ``toString(123456.789, '##,###.##') -> '123,456.79'``
@@ -869,84 +869,84 @@ Converts a primitive datatype to a string. For numbers and date a format can be
869869
___
870870
### <code>toTimestamp</code>
871871
<code><b>toTimestamp(<i>&lt;string&gt;</i> : any, [<i>&lt;timestamp format&gt;</i> : string], [<i>&lt;time zone&gt;</i> : string]) => timestamp</b></code><br/><br/>
872-
Converts a string to a timestamp given an optional timestamp format. Refer to Java SimpleDateFormat for all possible formats. If the timestamp is omitted the default pattern.yyyy-[M]M-[d]d hh:mm:ss[.f...] is used. You can pass an optional timezone in the form of 'GMT', 'PST', 'UTC', 'America/Cayman'.Timestamp supports up to millisecond accuracy with value of 999Refer Java's SimpleDateFormat for available formats. https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
872+
Converts a string to a timestamp given an optional timestamp format. Refer to Java SimpleDateFormat for all possible formats. If the timestamp is omitted the default pattern.yyyy-[M]M-[d]d hh:mm:ss[.f...] is used. You can pass an optional timezone in the form of 'GMT', 'PST', 'UTC', 'America/Cayman'.Timestamp supports up to millisecond accuracy with value of 999Refer Java's SimpleDateFormat for available formats. https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
873873
* ``toTimestamp('2016-12-31 00:12:00') -> toTimestamp('2016-12-31 00:12:00')``
874874
* ``toTimestamp('2016-12-31T00:12:00', 'yyyy-MM-dd\'T\'HH:mm:ss', 'PST') -> toTimestamp('2016-12-31 00:12:00')``
875875
* ``toTimestamp('12/31/2016T00:12:00', 'MM/dd/yyyy\'T\'HH:mm:ss') -> toTimestamp('2016-12-31 00:12:00')``
876876
* ``millisecond(toTimestamp('2019-02-03 05:19:28.871', 'yyyy-MM-dd HH:mm:ss.SSS')) -> 871``
877877
___
878878
### <code>toUTC</code>
879879
<code><b>toUTC(<i>&lt;value1&gt;</i> : timestamp, [<i>&lt;value2&gt;</i> : string]) => timestamp</b></code><br/><br/>
880-
Converts the timestamp to UTC. You can pass an optional timezone in the form of 'GMT', 'PST', 'UTC', 'America/Cayman'. It is defaulted to the current timezoneRefer Java's SimpleDateFormat for available formats. https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
880+
Converts the timestamp to UTC. You can pass an optional timezone in the form of 'GMT', 'PST', 'UTC', 'America/Cayman'. It is defaulted to the current timezoneRefer Java's SimpleDateFormat for available formats. https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
881881
* ``toUTC(currentTimeStamp()) == toTimestamp('2050-12-12 19:18:12') -> false``
882882
* ``toUTC(currentTimeStamp(), 'Asia/Seoul') != toTimestamp('2050-12-12 19:18:12') -> true``
883883
___
884884
### <code>translate</code>
885885
<code><b>translate(<i>&lt;string to translate&gt;</i> : string, <i>&lt;lookup characters&gt;</i> : string, <i>&lt;replace characters&gt;</i> : string) => string</b></code><br/><br/>
886-
Replace one set of characters by another set of characters in the string. Characters have 1 to 1 replacement
886+
Replace one set of characters by another set of characters in the string. Characters have 1 to 1 replacement
887887
* ``translate('(bojjus)', '()', '[]') -> '[bojjus]'``
888888
* ``translate('(gunchus)', '()', '[') -> '[gunchus'``
889889
___
890890
### <code>trim</code>
891891
<code><b>trim(<i>&lt;string to trim&gt;</i> : string, [<i>&lt;trim characters&gt;</i> : string]) => string</b></code><br/><br/>
892-
Trims a string of leading and trailing characters. If second parameter is unspecified, it trims whitespace. Else it trims any character specified in the second parameter
892+
Trims a string of leading and trailing characters. If second parameter is unspecified, it trims whitespace. Else it trims any character specified in the second parameter
893893
* ``trim(' dumbo ') -> 'dumbo'``
894894
* ``trim('!--!du!mbo!', '-!') -> 'du!mbo'``
895895
___
896896
### <code>true</code>
897897
<code><b>true() => boolean</b></code><br/><br/>
898-
Always returns a true value. Use the function syntax(true()) if there is a column named 'true'
898+
Always returns a true value. Use the function syntax(true()) if there is a column named 'true'
899899
* ``(10 + 20 == 30) -> true``
900900
* ``(10 + 20 == 30) -> true()``
901901
___
902902
### <code>typeMatch</code>
903903
<code><b>typeMatch(<i>&lt;type&gt;</i> : string, <i>&lt;base type&gt;</i> : string) => boolean</b></code><br/><br/>
904-
Matches the type of the column. Can only be used in pattern expressions.number matches short, integer, long, double, float or decimal, integral matches short, integer, long, fractional matches double, float, decimal and datetime matches date or timestamp type
904+
Matches the type of the column. Can only be used in pattern expressions.number matches short, integer, long, double, float or decimal, integral matches short, integer, long, fractional matches double, float, decimal and datetime matches date or timestamp type
905905
* ``typeMatch(type, 'number')``
906906
* ``typeMatch('date', 'datetime')``
907907
___
908908
### <code>upper</code>
909909
<code><b>upper(<i>&lt;value1&gt;</i> : string) => string</b></code><br/><br/>
910-
Uppercases a string
910+
Uppercases a string
911911
* ``upper('bojjus') -> 'BOJJUS'``
912912
___
913913
### <code>uuid</code>
914914
<code><b>uuid() => string</b></code><br/><br/>
915-
Returns the generated UUID
915+
Returns the generated UUID
916916
* ``uuid()``
917917
___
918918
### <code>weekOfYear</code>
919919
<code><b>weekOfYear(<i>&lt;value1&gt;</i> : datetime) => integer</b></code><br/><br/>
920-
Gets the week of the year given a date
920+
Gets the week of the year given a date
921921
* ``weekOfYear(toDate('2008-02-20')) -> 8``
922922
___
923923
### <code>weeks</code>
924924
<code><b>weeks(<i>&lt;value1&gt;</i> : integer) => long</b></code><br/><br/>
925-
Duration in milliseconds for number of weeks
925+
Duration in milliseconds for number of weeks
926926
* ``weeks(2) -> 1209600000L``
927927
___
928928
### <code>xor</code>
929929
<code><b>xor(<i>&lt;value1&gt;</i> : boolean, <i>&lt;value2&gt;</i> : boolean) => boolean</b></code><br/><br/>
930-
Logical XOR operator. Same as ^ operator
930+
Logical XOR operator. Same as ^ operator
931931
* ``xor(true, false) -> true``
932932
* ``xor(true, true) -> false``
933933
* ``true ^ false -> true``
934934
___
935935
### <code>year</code>
936936
<code><b>year(<i>&lt;value1&gt;</i> : datetime) => integer</b></code><br/><br/>
937-
Gets the year value of a date
937+
Gets the year value of a date
938938
* ``year(toDate('2012-8-8')) -> 2012``
939939
## Aggregate functions
940940
The following functions are only available in aggregate, pivot, unpivot, and window transformations
941941
___
942942
### <code>avg</code>
943943
<code><b>avg(<i>&lt;value1&gt;</i> : number) => number</b></code><br/><br/>
944-
Gets the average of values of a column
944+
Gets the average of values of a column
945945
* ``avg(sales)``
946946
___
947947
### <code>avgIf</code>
948948
<code><b>avgIf(<i>&lt;value1&gt;</i> : boolean, <i>&lt;value2&gt;</i> : number) => number</b></code><br/><br/>
949-
Based on a criteria gets the average of values of a column
949+
Based on a criteria gets the average of values of a column
950950
* ``avgIf(region == 'West', sales)``
951951
___
952952
### <code>count</code>

0 commit comments

Comments
 (0)