Compute if expression absent(计算表达式缺失时)¶
Supported in: Batch
Computes the expression for new rows, the value for a given key will only ever be computed once, even across builds.
Transform categories: Other
Declared arguments¶
- Dataset: Dataset to apply expression to.
Table - Expression: Expression to compute when no result exists for key.
Expression\ - Key: Results are stored under this key. For a given key, a result will never be computed twice.
List\| Binary | Boolean | Byte | Date | Integer | Long | Short | String | Timestamp>> - Store id: The id for the store to store results under. If this id is changed, all results will be invalidated. The same id cannot be used twice in the same pipeline.
Literal\ - optional Always recompute null results: If true, any null results in the store will always be recomputed even if the result passes the user-provided store condition. This applies to both simple values as well as {ok, error} structs. Note that in order to maintain store invariants, the store must be reset whenever this value changes.
Literal\ - optional Disable store: If true, the store is fully disabled and all store parameters are ignored. At this point the transform will operate like a regular apply expression.
Literal\ - optional Do not store results when: Some results may not be desired to store. For example, an error result or null result. Given the result, choose what values should not be stored. By default, null results are not stored.
Expression\
中文翻译¶
计算表达式缺失时¶
支持:批处理模式(Batch)
为新行计算表达式,给定键的值在每次构建中只会被计算一次。
转换类别:其他
声明的参数¶
- 数据集(Dataset): 要应用表达式的数据集。
表格(Table) - 表达式(Expression): 当键不存在结果时计算的表达式。
表达式\<任意类型>(Expression\) - 键(Key): 结果存储在此键下。对于给定的键,结果永远不会被计算两次。
列表\<表达式\<数组\<二进制 | 布尔 | 字节 | 日期 | 整数 | 长整型 | 短整型 | 字符串 | 时间戳> | 二进制 | 布尔 | 字节 | 日期 | 整数 | 长整型 | 短整型 | 字符串 | 时间戳>>(List\| Binary | Boolean | Byte | Date | Integer | Long | Short | String | Timestamp>>) - 存储ID(Store id): 用于存储结果的存储ID。如果更改此ID,所有结果将失效。同一管道中不能重复使用相同的ID。
字面量\<字符串>(Literal\) - 可选 始终重新计算空结果(Always recompute null results): 如果为true,即使结果通过了用户提供的存储条件,存储中的任何空结果也将始终被重新计算。这适用于简单值以及{ok, error}结构体。请注意,为了维护存储不变性,每当此值更改时,必须重置存储。
字面量\<布尔>(Literal\) - 可选 禁用存储(Disable store): 如果为true,则完全禁用存储,所有存储参数将被忽略。此时转换将像常规的应用表达式一样运行。
字面量\<布尔>(Literal\) - 可选 不存储结果的条件(Do not store results when): 某些结果可能不需要存储。例如,错误结果或空结果。根据结果,选择不应存储的值。默认情况下,空结果不会被存储。
表达式\<布尔>(Expression\)