Common elements

Parameters

When creating a new variable, you'll use a variety of inputs to specify the parameters required to fully define a given method. Each parameter of the following types:

variable

Refers to a Redivis variable, often limited to a specific subset of types. When using variable parameters in a given transform, you'll be able to select variables from the source table, variables in tables referenced by joins, or new variables created upstream of the parameter.

literal

Refers to a string, integer, boolean, or floating point value. When using literal parameters, you'll be able to type any constant value (e.g, false, 1.0, 'test'), or use a value list to reference the same set of values anywhere in your project. If using a literal parameter alongside another parameter, e.g., in a filter comparison, you may have to match the type of literal with that parameter.

enum

Refers to a set of distinct values, usually of a homogenous type. For example, if a required parameter used a "timezone" enum with 3 options (PST, MST or EST), you would have to select one of the three options (PST) for the value of that parameter.

boolean

Refers to values true or false.

Null

In many places throughout the transform you will have an option in the system menu to set a cell value(s) to NULL. Conceptually this means that the cell is empty and contains no value. If you look at the Cells view of a table, you will see NULL values shown in a grey color to indicate that these cells are empty.

Note that this is different than if the cell contained a string with the characters NULL. In this case the cell does have contents and will be treated so.

You will see throughout the transform references to how nulls are included or excluded for steps (such as the Order step) and in calculating summary statistics.

Format elements for dates and time methods

Some new variable methods (PARSE... and FORMAT...) allow for manipulation of Date, Time, or DateTime variable types. To do so, you'll need to define how the data is formatted using format elements.

For example, to work with dates in a mm/dd/yy format (common in the U.S.; e.g. 03/22/89 ), we would specify the format string %m/%d/%y . For a DateTime displayed as Mon Oct 17 2016 17:32:56 , we would specify %a %b %d %Y %H:%M:%S

Note that different format elements are used for the Retype step (CAST method) which are detailed elsewhere.

Below is a complete list of format elements and descriptions:

Accessor elements for JSON methods

Some new variable methods (JSON extract..., JSON scalar, etc) allow for accessing subsets of the data contained within JSON-formatted strings. To do so, you'll need to define how the data is accessed using a JSONPath element.

For example, to access the firstName attribute within a JSON-formatted string { "firstName": "John", "lastName": "Doe" }, you'd specify a JSONPath element $.firstName.

More information is available in BigQuery's JSONPath format documentation.

Last updated