partition by day { function_call(day) } that doesn't work, but if I do ...

问题描述 投票:0回答:1
please have a look at

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)  
}

azure-data-explorer kusto-query-language
1个回答
2
投票

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.
  1. toscalar()Depending on what your function,
  2. 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.
  3. 如何在Kusto中使用
  4. 通过调用一个以值为参数的函数来运行一个子查询?
  5. 那是行不通的,但如果我给一个常量的
  6. 那么它将会工作,但它变成了一个具有相同参数的函数调用的联合,虽然不是我真正想要的......

function_call()如何使用partition通过调用以值为参数的函数运行子查询? range day from 1 to 50 step 1

© www.soinside.com 2019 - 2024. All rights reserved.