跳转至

Get struct field(获取结构体字段(Get struct field))

Supported in: Batch, Faster, Streaming

Extracts a field from a struct.

Expression categories: Struct

Declared arguments

  • Locator: Extract inner elements with multiple entries like ['author', 'email'].
    StructLocator
  • Struct: no description
    Expression\

Output type: AnyType

Examples

Example 1: Base case

Argument values:

  • Locator: airline.id
  • Struct: struct
struct Output
{
airline: {
id: NA,
},
}
NA
{
airline: {
id: FE,
},
}
FE

Example 2: Base case

Argument values:

  • Locator: airline.id
  • Struct: struct
struct Output
{
airline: null,
}
null
{
airline: {
id: null,
},
}
null
null null


中文翻译


获取结构体字段(Get struct field)

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

从结构体中提取一个字段。

表达式类别: 结构体(Struct)

声明的参数

  • 定位器(Locator): 使用多个条目提取内部元素,例如 ['author', 'email']。
    结构体定位器(StructLocator)
  • 结构体(Struct): 无描述
    表达式\

输出类型: 任意类型(AnyType)

示例

示例1:基础案例

参数值:

  • 定位器: airline.id
  • 结构体: struct
struct 输出
{
airline: {
id: NA,
},
}
NA
{
airline: {
id: FE,
},
}
FE

示例2:基础案例

参数值:

  • 定位器: airline.id
  • 结构体: struct
struct 输出
{
airline: null,
}
null
{
airline: {
id: null,
},
}
null
null null