Skip to main content
NameDescription
ByteArrayToStringConverts a byte array to a string based on the given encoding.
GetBytesReturns a byte array for a string input.
ParseDoubleOrDefaultAttempts to convert a string representation of a number to a double-precision numeric equivalent. If successful, returns the string as a double numeric value, otherwise returns the default value.
ParseFloatOrDefaultAttempts to convert a string representation of a number to a floating-precision numeric equivalent. If successful, returns the string as a double numeric value, otherwise returns the default value.
ParseIntOrDefaultAttempts to convert a string representation of a number to a integer-precision numeric equivalent. If successful, returns the string as a double numeric value, otherwise returns the default value.
ParseLongOrDefaultAttempts to convert a string representation of a number to a long-precision numeric equivalent. If successful, returns the string as a double numeric value, otherwise returns the default value.
ParseDateConvert input datetime string to datetime data type, using the first format that matches the string.
ToDateConvert datetime string to datetime data type
ToDateCustomFormatsConvert input that matches one of multiple formats to datetime data type.
ToHexStringReturns a string representation of the integer argument in base 16
ToStringConvert datetime value to string data type
ToJsonReturns the input as a JSON string.
NameDescription
BagToStringConcatenates a bag into a string.
BagToTupleFlattens a bag into a tuple. Once the bag is flattened into a tuple, items can be extracted by referencing tuple items.
IsEmptyReturns true if the input map or bag is empty, false if the input contains items, or null if the input is null.
MapToBagTransforms a hash map to a bag of hash maps where each map contains two keys: key and value.
MapToQueryStringConverts a map to a URL query string (key1=value1&key2=value2).
TOBAGConverts one or more expressions to type bag
TOMAPConverts key/value expression pairs to type map
TOTUPLEConverts one or more expressions to type tuple
NameDescription
AddDurationReturns the result of a datetime_field plus a duration_field.
ClockTimeFor each record, returns the datetime value when the function is called.
CurrentTimeReturns the datetime value when a job was submitted. Use ClockTime() to get a value per record in the set.
DaysBetweenReturns the number of days between the end_datetime and the start_datetime?.
GetDayReturns the day of a month from a datetime field.
GetHourReturns the hour of a day from a datetime field.
GetMilliSecondReturns the millisecond of a second from a datetime field.
GetMinuteReturns the minute of a hour from a datetime field.
GetMonthReturns the month of a year from a datetime field.
GetSecondReturns the second of a minute from a datetime field.
GetWeekReturns the week of a week year from a datetime field.
GetWeekYearReturns the week year from a datetime field.
GetYearReturns the year from a datetime field.
HoursBetweenReturns the number of hours between the end_datetime and the start_datetime?.
IntervalIntersectionReturns the duration in milliseconds of the overlap between all intervals in the function’s arguments.
MilliSecondsBetweenReturns the number of milliseconds between the end_datetime and the start_datetime?.
MinutesBetweenReturns the number of minutes between the end_datetime and the start_datetime?.
MonthsBetweenReturns the number of months between the end_datetime and the start_datetime?.
SecondsBetweenReturns the number of seconds between the end_datetime and the start_datetime.
SubtractDurationReturns the result of a DateTime object minus a Duration object.
SwitchTimeZoneChanges a datetime value’s time zone from the value’s original time zone to the time zone given in tz_string and returns the value.
ToMilliSecondsReturns the number of milliseconds elapsed since 1970-01-01T00:00:00Z for a datetime value.
ToUnixTimeReturns the Unix Time for a datetime value.
WeeksBetweenReturns the number of weeks between the end_datetime and the start_datetime
YearsBetweenReturns the number of years between the end_datetime and the start_datetime.
ISO 8601 String Functions
NameDescription
DateDiffDaysReturns the number of days between the end_datetime and the start_datetime.
DateDiffHoursReturns the number of hours between the end_datetime and the start_datetime.
DateDiffMinutesReturns the number of minutes between the end_datetime and the start_datetime.
DateDiffMonthsReturns the number of months between the end_datetime and the start_datetime.
DateDiffSecondsReturns the number of seconds between the end_datetime and the start_datetime.
DateDiffYearsReturns the number of years between the end_datetime and the start_datetime.
IsISODatetimeChecks if the datetime_field is in ISO 8601 date time format.
ISOAddDurationAdds the value represented by the duration field to the datetime_field.
ISODatetimeToStringConvert datetime string in ISO format to JDBC timestamp string format
ISODatetimeToTimestampFormatConvert datetime string in ISO format to JDBC timestamp string format
ISOSubtractDurationSubtracts the value represented by the duration field from the datetime_field.
ISOToDayResets the ISO datetime string to the beginning of the day specified in the string.
ISOToHourResets the ISO datetime string to the beginning of the hour specified in the string.
ISOToMinuteResets the ISO datetime string to the beginning of the minute specified in the string.
ISOToMonthResets the ISO datetime string to the beginning of the month specified in the string.
ISOToSecondResets the ISO datetime string to the beginning of the second specified in the string.
ISOToWeekResets the ISO datetime string to the beginning of the week (Monday) specified in the string.
ISOToYearResets the ISO datetime string to the beginning of the year specified in the string.
StringToISODatetimeConverts a non-ISO datetime string whose structure is defined by a format string into an ISO 8601 format.
TimestampFormatToISODatetimeConvert datetime string in JDBC timestamp string format to ISO format
IP to Location Functions
NameDescription
CityNameFromIPExtracts the city name from a given IPv4 string (dot-decimal notation).
ContinentCodeFromIPExtracts the continent code from a given IPv4 string (dot-decimal notation).
ContinentNameFromIPExtracts the continent name from a given IPv4 string (dot-decimal notation).
CountryCodeFromIPExtracts the country code (ISO-3166-1 alpha2) from a given IPv4 string (dot-decimal notation).
CountryNameFromIPExtracts the country name from a given IPv4 string (dot-decimal notation).
LatitudeFromIPExtracts the latitude from a given IPv4 string (dot-decimal notation).
LongitudeFromIPExtracts the longitude from a given IPv4 string (dot-decimal notation).
RegionCodeFromIPExtracts the two character ISO-3166-2 (US or Canada) or FIPS 10-4 code for the state/region from a given IPv4 string (dot-decimal notation).
RegionNameFromIPExtracts the region, state (US) or province (Canada) from a given IPv4 string (dot-decimal notation).
NameDescription
JsonExtractExtracts the value referenced by  jsonpath-like expression json_path from a given JSON json string (a string containing JSON) and returns the result as a JSON string.
JsonExtractScalarExtracts the value referenced by JSONPath-like expression json_path from a given JSON string (a string containing JSON) and returns the result as a string
JsonStringToBagConverts a string field that contains a json array to a bag (array).
JsonStringToMapConverts a string field that contains a Json object to a map (key:value pairs). From   the map you can extract fields using the notation map#‘fieldname’.
NameDescription
ExecuteBQInsertStarts a query job in Google BigQuery and writes the query results to a destination table.
ExecuteSqlBooleanExecute a SQL query that returns a scalar boolean value.
ExecuteSqlDateTimeExecute a SQL query that returns a scalar datetime value.
ExecuteSqlDoubleExecute a SQL query that returns a scalar double value.
ExecuteSqlFloatExecute a SQL query that returns a scalar float value.
ExecuteSqlIntExecute a SQL query that returns a scalar int value.
ExecuteSqlLongExecute a SQL query that returns a scalar long value.
ExecuteSqlStringExecute a SQL query that returns a scalar string value.
ExecuteSqlNonQueryExecute a SQL statement or a batch of SQL statements that modify the data or the schema (DML or DDL).
NameDescription
XPathExtracts part of an XML document using an XPath expression.
XPathToBagExtracts part of an XML document using an XPath expression and returns a bag of all matches.
NameDescription
ABSReturns the absolute value of a number
ACOSReturns the arc cosine of a number
ASINReturns the arc sine of a number
ATANReturns the arc tangent of a number
CBRTReturns the cube root of a number
CEILRounds the expression up to the nearest integer.
COSReturns the trigonometric cosine of a number
COSHReturns the hyperbolic cosine of a number
EXPReturns Euler’s number e raised to the power of the expression
FLOORRounds the expression down to the nearest integer.
LOGReturns the natural logarithm of a number
LOG10Returns the base 10 logarithm of a number
POWReturns x raised to the power of y
RANDOMReturns a pseudo-random number between 0.0 and 1.0
ROUNDRounds the expression up or down to the nearest integer according to standard math rules.
ROUND_TORounds the expression to a fixed number of decimal digits.
SINReturns the trigonometric sine of a number
SINHReturns the hyperbolic sine of a number
SQRTReturns the square root of a number
TANReturns the trigonometric tangent of a number
TANHReturns the hyperbolic tangent of a number
NameDescription
Base64DecodeDecodes a Base64 string into a bytearray.
Base64DecodeToStringDecodes a Base64 string into string.
Base64EncodeEncodes a byte array argument into a Base64 byte array.
Base64EncodeToStringEncodes a byte array argument into a string using Base64 encoding scheme.
CONCATConcatenates a variable number of strings and returns them as one string.
ExtractQueryStringParamExtracts the value from a specified query string parameter for a url field.
ExtractSearchQueryReturns the search string from a search engine query url.
ExtractUrlPartExtracts a specified part from a URL field.
INDEXOFReturns the position of the first occurrence of a search string in a string field, when searching forward from the start index.
LAST_INDEX_OFReturns the position of the last occurrence of a search string in a string field, when searching backward from the end of the string.
LCFIRSTConverts the first character in a string to lower case
LengthReturns the number of characters in a string field.
LOWERConverts the characters in a string_field to lower case.
QueryStringToMapConverts a string field that contains a query string (…?key1=value1&key2=value2) to a map of key:value pairs. From the map you can extract fields using the notation map#‘fieldname’.
REGEX_EXTRACTReturns the nth occurrence (specified by index) of a string that matches the regular expression.
REGEX_EXTRACT_ALLReturns a tuple with all matched groups.
REGEX_FIND_ALLReturn all occurrences of strings that match a regular expression in a bag.
REPLACEIn a string field, replaces all occurrences of a string with a different string.
SPRINTFUses printf-style template to formats a set of values using the native Java formatter library.
STRSPLITSplits a string around matches of a delimiter
STRSPLITTOBAGSplits a string into a bag around matches of a delimiter.
SUBSTRINGReturns part of a string field.
TOKENIZEGenerates a bag from delimited strings in string field. If you don’t specify a single-character delimiter, tokenize will use any of the following characters: space, double-quote, comma, parenthesis, star
TRIMRemoves leading and trailing spaces from a string field.
UCFIRSTConverts the first character in a string to upper case
UPPERConverts the characters in a string_field to upper case.
URLDecodeDecodes a string field containing an encoded url.
URLEncodeURL-encodes a given string expression..
UUIDReturns a universally unique   identifier (string)
NameDescription
MD2Calculates the MD2 hash of a string
MD5Calculates the MD5 hash of a string
SHA1Calculates the SHA1 hash of a string
SHA256Calculates the SHA256 hash of a string
SHA256WithRSASign an input string with an RSA private key using the SHA256withRSA signature algorithm. Useful with JWT authentication.
SHA384Calculates the SHA384 hash of a string
SHA512Calculates the SHA512 hash of a string
NameDescription
EncryptAES encrypt a string using the specified AWS KMS key ARN and encryption context.
DecryptDecrypt an Integrate.io ETL encrypted string using the specified AWS KMS key ARN and the encryption context used for the encryption.
NameDescription
BrowserFamilyExtract browser family from user agent string
BrowserFullNameExtract browser full name (family+version) from user agent string
BrowserMajorExtract browser major version from user agent string
BrowserMinorExtract browser minor version from user agent string
BrowserPatchExtract browser patch version from user agent string
BrowserVersionExtract browser version from user agent string
DeviceFamilyExtract device family from user agent string
ExtractUABrowserIDReturns a browser ID for a given user agent string.
ExtractUABrowserNameReturns a browser name for a given user agent string.
OsFamilyExtract OS family from user agent string
OsFullNameExtract OS full name (family+version) from uesr agent string
OsMajorExtract OS major version from user agent string
OsMinorExtract OS minor version from user agent string
OsPatchExtract OS patch version from user agent string
OsPatchMinorExtract OS patch minor version from user agent string
OsVersionExtract OS version from user agent string
PlatformFamilyExtract platform family from user agent string
NameDescription
CCurlMakes a REST API call and returns the response received from the server. Requests are authenticated using an Integrate.io ETL connection.
BinaryCCurlMakes a REST API call and returns the binary response received from the server. Requests are authenticated using an Integrate.io ETL connection.
CCurlWithPaginationMakes one or more REST API calls and returns the responses received from all the pages requested from the server. Requests are authenticated using an Integrate.io ETL connection.
COALESCEReturns the first non-NULL argument
CurlMakes a REST API call and returns the response received from the server.
BinaryCurlMakes a REST API call and returns the binary response received from the server. Requests are made either anonymous or with basic authentication
CurlWithPaginationMakes one or more REST API calls and returns the responses received from all the pages requested from the server. Requests are made either anonymous or with basic authentication.
CurlPollMakes a REST API request continuously until a regular expression is matched or timeout is reached.
CCurlPollMakes a REST API request continuously until a regular expression is matched or timeout is reached. Requests are authenticated using an Integrate.io ETL connection.
DistInMilesHaversineComputes the distance (in miles) between two latitude-longitude pairs using the Haversine formula, base on Apache DataFu.
FlattenFor each item in a bag, flatten creates a new record containing the item and the data of all the other fields in the component.
SIZECalculates the number of elements based on the data type.
SleepCauses the process to sleep for a specified number of milliseconds
CSVSPLITSplits a CSV string into a tuple around matches of a field delimiter.
Last modified on April 20, 2026