Apply expression

Supported in: Batch, Streaming

Transforms input dataset by applying a single expression.

Transform categories: Other

Declared arguments

  • Dataset - Dataset to apply expression to.
    Table
  • Expression - Expression to apply.
    Expression<AnyType>

Examples

Example 1: Base case

Argument values:

  • Dataset: ri.foundry.main.dataset.a
  • Expression:
    alias(
     alias: kilometers,
     expression:
    convertDistance(
     amount: miles,
     currentUnit: mile,
     targetUnit: kilometer,
    ),
    )

Input:

airlinemiles
foundry airways2500
new air3000

Output:

kilometersairlinemiles
4023.36foundry airways2500
4828.03new air3000