<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Functions on</title><link>https://docs.gathr.ai/gathr-unlimited/7.6.0/docs/functions/</link><description>Recent content in Functions on</description><generator>Hugo -- gohugo.io</generator><lastBuildDate>Sun, 11 Dec 2022 19:37:55 +0530</lastBuildDate><atom:link href="https://docs.gathr.ai/gathr-unlimited/7.6.0/docs/functions/index.xml" rel="self" type="application/rss+xml"/><item><title>About Functions</title><link>https://docs.gathr.ai/gathr-unlimited/7.6.0/docs/functions/about_functions/</link><pubDate>Sun, 11 Dec 2022 21:01:49 +0530</pubDate><guid>https://docs.gathr.ai/gathr-unlimited/7.6.0/docs/functions/about_functions/</guid><description>Gathr provides a wide variety of functions using which you can directly apply computations on the dataset columns and get desired results.
Array Functions →
Date Functions →
Lookup Functions
Math Functions →
String Functions →
Miscellaneous Functions →
The functions takes columns and/or literals as arguments.
In order to pass column “A” of a dataset “D” as a function argument:
Pass is as for example, @{column.D.A}
There are some exceptions where you need to pass the column name directly.</description></item><item><title>Date Functions</title><link>https://docs.gathr.ai/gathr-unlimited/7.6.0/docs/functions/date_functions/</link><pubDate>Sun, 11 Dec 2022 21:01:49 +0530</pubDate><guid>https://docs.gathr.ai/gathr-unlimited/7.6.0/docs/functions/date_functions/</guid><description>Enables to perform calculations involving dates.
add_months # Calculates the new date by adding the given number of months.
Input Parameters: Column arg0, int arg1.
arg0 (required) – The string/date/timestamp column to which months are to be added.
arg1 (required)– Number of months to be added.
Output Type Date Column Configuration Parameters No Returns Returns the date that is arg1 after arg0. Throws Application Exception
Use Case:
add_months(Column arg0, int arg1)</description></item><item><title>String Functions</title><link>https://docs.gathr.ai/gathr-unlimited/7.6.0/docs/functions/string_functions/</link><pubDate>Sun, 11 Dec 2022 21:01:49 +0530</pubDate><guid>https://docs.gathr.ai/gathr-unlimited/7.6.0/docs/functions/string_functions/</guid><description>Ascii # Computes the numeric value of the first character of the string column, and returns the result as an int column.
Input Parameters: Column arg0
arg0(required) - The string column for which the first character’s numeric value to be calculated.
Output Type String Column Configuration Parameters No Returns The ASCII value as an int column. Throws Application Exception
Use Case:
ascii(Column arg0)
Example:
ascii(“An apple”) will return 65
base64 # Converts the argument from a binary bin to a base 64 string.</description></item><item><title>Math Function</title><link>https://docs.gathr.ai/gathr-unlimited/7.6.0/docs/functions/math_functions/</link><pubDate>Sun, 11 Dec 2022 21:01:49 +0530</pubDate><guid>https://docs.gathr.ai/gathr-unlimited/7.6.0/docs/functions/math_functions/</guid><description>Abs # Computes the absolute value.
Input Parameters: Column arg0
arg0 (required) - The column for which absolute value to be calculated.
Output Type Number Column Configuration Parameters No Returns The computed absolute value. Throws Application Exception
Use Case:
abs(Column arg0)
Example:
abs(77.76) will return 77.76
Acos # Computes the cosine inverse of the given value; the returned angle is in the range 0.0 through pi.
Input Parameters: Column arg0</description></item><item><title>Array Functions</title><link>https://docs.gathr.ai/gathr-unlimited/7.6.0/docs/functions/array_functions/</link><pubDate>Sun, 11 Dec 2022 21:01:49 +0530</pubDate><guid>https://docs.gathr.ai/gathr-unlimited/7.6.0/docs/functions/array_functions/</guid><description>Array # Returns an array with the given elements.
Input Parameters:
arg0: The given columns to create array column.
Configuration Parameters No Returns Returns an array with the given elements. Throws Application Exception
Use Case:
array(Column… arg0)
Example:
array(1, 2, 3) will return [1,2,3]
Array_union # Returns an array of the elements in the union of array1 and array2, without duplicates.
Input Parameters:
arg0: The first array column.
arg1: The second array column.</description></item><item><title>Miscellaneous Functions</title><link>https://docs.gathr.ai/gathr-unlimited/7.6.0/docs/functions/miscellaneous_functions/</link><pubDate>Sun, 11 Dec 2022 21:01:49 +0530</pubDate><guid>https://docs.gathr.ai/gathr-unlimited/7.6.0/docs/functions/miscellaneous_functions/</guid><description>Coalesce # Returns the first non-null argument if exists. Otherwise, null.
Input Parameters:
arg0:columns representing expressions.
Output Type Integer Column Configuration Parameters No Returns Returns the first non-null argument if exists. Otherwise, null. Throws Application Exception
Use Case:
coalesce(Column… arg0)
Example:
coalesce(NULL, 1, NULL) will return 1
from_json # Returns a struct value with the given jsonStr and schema.
Input Parameters:
arg0: The Json string column.
arg1: The schema column.</description></item></channel></rss>