invoke 演算子

のソース invoke を表形式の引数として受け取るラムダ式を呼び出します。

Note

表形式の引数を受け取ることができるラムダ式を宣言する方法の詳細については、「 let ステートメント」を参照してください。

構文

T| invoke関数([param1,param2])

構文規則について詳しく知る。

パラメーター

名前 必須 説明
T string ✔️ 表形式のソース。
function string ✔️ 評価するラムダ let 式または格納されている関数名の名前。
param1param2 ... string 関数に渡す追加のラムダ引数。

戻り値

評価された式の結果を返します。

次の例は、 演算子を使用してラムダlet式をinvoke呼び出す方法を示しています。

// clipped_average(): calculates percentiles limits, and then makes another 
//                    pass over the data to calculate average with values inside the percentiles
let clipped_average = (T:(x: long), lowPercentile:double, upPercentile:double)
{
   let high = toscalar(T | summarize percentiles(x, upPercentile));
   let low = toscalar(T | summarize percentiles(x, lowPercentile));
   T 
   | where x > low and x < high
   | summarize avg(x) 
};
range x from 1 to 100 step 1
| invoke clipped_average(5, 99)

出力

avg_x
52