注意:以下翻译的准确性尚未经过验证。这是使用 AIP ↗ 从原始英文文本进行的机器翻译。

数组元素到列

支持于: 批处理

从数组中提取元素到列中。

变换类别: 数组

声明的参数

  • 数组 - 要从中提取列的数组。
    Expression<Array<AnyType>>
  • 要提取的列 - 列名列表。
    List<Literal<字符串>>
  • 数据集 - 要删除列的数据集。
    Table

示例

示例 1: 基本情况

参数值:

  • 数组: stats
  • 要提取的列: [miles, id]
  • 数据集: ri.foundry.main.dataset.a

输入:

stats
[ 1000, 2 ]

输出:

milesidstats
10002[ 1000, 2 ]

示例 2: 基本情况

参数值:

  • 数组: stats
  • 要提取的列: [miles, id]
  • 数据集: ri.foundry.main.dataset.a

输入:

stats
[ 1000, 2, 10 ]
[ 2000 ]

输出:

milesidstats
10002[ 1000, 2, 10 ]
2000null[ 2000 ]

示例 3: 空值情况

参数值:

  • 数组: stats
  • 要提取的列: [miles, id]
  • 数据集: ri.foundry.main.dataset.a

输入:

stats
[ null, null ]
null

输出:

milesidstats
nullnull[ null, null ]
nullnullnull