Manually entered table(手动输入表)¶
Supported in: Batch, Faster, Streaming
Uses manually entered table data to create an output.
Transform categories: Other
Declared arguments¶
- Rows: A list of structs representing rows, with struct fields representing column names and values.
List\> - optional Schema: A schema to be used if present for column names and types. If undefined, rows must be nonempty and will be used to infer the schema.
Type\
Examples¶
Example 1: Base case¶
Argument values:
- Rows: [{
airline: foundry airlines,
flight_code: 112,
flight_number: XB-123,
}, {
airline: foundry airlines,
flight_code: 533,
flight_number: MT-444,
}, {
airline: new air,
flight_code: 934,
flight_number: KK-123,
}] - Schema: Struct\
Inputs:
Output:
| flight_code | flight_number | airline |
|---|---|---|
| 112 | XB-123 | foundry airlines |
| 533 | MT-444 | foundry airlines |
| 934 | KK-123 | new air |
中文翻译¶
手动输入表¶
支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)
使用手动输入的表格数据创建输出。
转换类别:其他
声明的参数¶
- 行(Rows): 表示行的结构体列表,结构体字段代表列名和值。
列表<字面量<结构体>> - 可选 模式(Schema): 如果提供,则用于指定列名和类型的模式。若未定义,则行必须非空,并将用于推断模式。
类型<结构体>
示例¶
示例1:基本情况¶
参数值:
- 行(Rows): [{
airline: foundry airlines,
flight_code: 112,
flight_number: XB-123,
}, {
airline: foundry airlines,
flight_code: 533,
flight_number: MT-444,
}, {
airline: new air,
flight_code: 934,
flight_number: KK-123,
}] - 模式(Schema): Struct\
输入:
输出:
| flight_code | flight_number | airline |
|---|---|---|
| 112 | XB-123 | foundry airlines |
| 533 | MT-444 | foundry airlines |
| 934 | KK-123 | new air |