caseWhen
This section contains reference documentation for the caseWhen function.
Returns values depending on boolean expressions. This function can only be used in an ingestion transformation function.
Signature
caseWhen(booleanExpr1, valueIfExpr1True, booleanExpr2, valueIfExpr2True) caseWhen(booleanExpr1, valueIfExpr1True, booleanExpr2, valueIfExpr2True, ... ,valueIfFalse)
Arguments | Description |
---|---|
| A boolean expression |
| A value to return. |
Usage Examples
The usage examples are based on extracting fields from the following JSON documents:
Expression | Value |
---|---|
|
|
|
|
This function can be used in the table config to add northernHemisphere
column:
Last updated