user-defined functions usage restrictionspartition
, specifically #1-2 (assuming I guessed correctly what your function,
range day from 1 to 50 step 1
| partition by day
{
function_call(day)
}
, does):
range day from 1 to 50 step 1
| partition by day
{
function_call(10)
}
User-defined functions that return a tabular expression can't be invoked with an argument that varies with the row context. function_call()
A function taking at least one tabular input can't be invoked on a remote cluster.
A scalar function can't be invoked on a remote cluster.
- does, you could achieve your goal in a different way. But you'll need to specify the logic of that function if you need further assistance.
toscalar()
Depending on what your function,- 如何在Kusto中使用
- 通过调用一个以值为参数的函数来运行一个子查询?
那是行不通的,但如果我给一个常量的- 那么它将会工作,但它变成了一个具有相同参数的函数调用的联合,虽然不是我真正想要的......
function_call()
如何使用partition通过调用以值为参数的函数运行子查询? range day from 1 to 50 step 1