serialize 运算符serialize operator

标记输入行集的顺序可安全用于开窗函数。Marks that the order of the input row set is safe to use for window functions.

运算符具有声明性含义。The operator has a declarative meaning. 它将输入行集标记为已序列化(已排序),以便可以将开窗函数应用于它。It marks the input row set as serialized (ordered), so that window functions can be applied to it.

T | serialize rn=row_number()


serialize [Name1 = Expr1 [, Name2 = Expr2]...] serialize [ Name1 = Expr1 [, Name2 = Expr2 ]...]


| where ActivityId == "479671d99b7b"
| serialize

| where ActivityId == "479671d99b7b"
| serialize rn = row_number()

以下运算符的输出行集标记为已序列化。The output row set of the following operators is marked as serialized.

rangesortordertoptop-hittersgetschemarange, sort, order, top, top-hitters, getschema.

以下运算符的输出行集标记为非序列化。The output row set of the following operators is marked as non-serialized.

samplesample-distinctdistinctjointop-nestedcountsummarizefacetmv-expandevaluatereduce bymake-seriessample, sample-distinct, distinct, join, top-nested, count, summarize, facet, mv-expand, evaluate, reduce by, make-series

所有其他运算符保留序列化属性。All other operators preserve the serialization property. 如果输入行集已序列化,则输出行集也会序列化。If the input row set is serialized, then the output row set is also serialized.