跳转至

Extract many struct fields(提取多个结构体字段(Extract many struct fields))

Supported in: Batch, Faster

Extracts many fields from a struct. Original struct will be dropped.

Transform categories: Struct

Declared arguments

  • Dataset: Dataset containing struct column.
    Table
  • Locators: Locators for fields to access in the struct.
    List\>>
  • Struct: Input struct.
    Column\

Examples

Example 1: Base case

Argument values:

  • Dataset: ri.foundry.main.dataset.a
  • Locators: [(airline.name, airline), (tail_no, tail_number)]
  • Struct: raw

Input:

raw
{
airline: {
id: NA,
name: new air,
},
tail_no: NA-123,
}
{
airline: {
id: FA,
name: foundry airways,
},
tail_no: FA-123,
}

Output:

airline tail_number
new air NA-123
foundry airways FA-123


中文翻译


提取多个结构体字段(Extract many struct fields)

支持:批处理(Batch)、快速处理(Faster)

从结构体中提取多个字段。原始结构体将被删除。

转换类别:结构体(Struct)

声明的参数(Declared arguments)

  • 数据集(Dataset): 包含结构体列的数据集。
    表(Table)
  • 定位器(Locators): 用于访问结构体中字段的定位器。
    列表\<元组\>>
  • 结构体(Struct): 输入的结构体。
    列\

示例(Examples)

示例 1:基础情况

参数值:

  • 数据集: ri.foundry.main.dataset.a
  • 定位器: [(airline.name, airline), (tail_no, tail_number)]
  • 结构体: raw

输入:

raw
{
airline: {
id: NA,
name: new air,
},
tail_no: NA-123,
}
{
airline: {
id: FA,
name: foundry airways,
},
tail_no: FA-123,
}

输出:

airline tail_number
new air NA-123
foundry airways FA-123