Rename columns

Supported in: Batch, Streaming

Renames a set of columns.

Transform categories: Data preparation, Popular

Declared arguments

  • Input dataset - Source dataset containing columns to be renamed.
    Table
  • Renames - Renames from existing column names to new names.
    List<Tuple<Column<AnyType>, Literal<String>>>

Examples

Example 1: Base case

Argument values:

  • Input dataset: ri.foundry.main.dataset.a
  • Renames: [(recently_serviced, does_not_require_service)]

Input:

recently_servicedtail_numberairline_code
trueKK-150KK
falseXB-120XB
trueMT-190MT

Output:

does_not_require_servicetail_numberairline_code
trueKK-150KK
falseXB-120XB
trueMT-190MT