make-series operator not supported inside partition by, even though it should be

Kasper 20 Reputation points
2025-06-04T14:53:57.44+00:00

According to the documentation for the partition operator, i should be able to use the make-series operator within a subquery (https://learn.microsoft.com/en-us/kusto/query/partition-operator?view=azure-data-explorer). Yet, when I try to do that I get Operator 'partition-by': 'join' cannot be used inside the subquery

As a minimal example, this also happens when trying to use it on the stormEvents table in the samples database. How can I fix/avoid this?

StormEvents | partition hint.strategy=native by State (
    make-series DamageProperty=max(DamageProperty) default=double(null) on StartTime step 1m 
)
Azure Data Explorer
Azure Data Explorer
An Azure data analytics service for real-time analysis on large volumes of data streaming from sources including applications, websites, and internet of things devices.
{count} votes

Accepted answer
  1. Chandra Boorla 15,425 Reputation points Microsoft External Staff Moderator
    2025-06-04T17:38:21.0033333+00:00

    @Kasper

    The issue you’re encountering happens because the make-series operator internally uses a join, and currently, the partition operator does not support subqueries containing operators like join. This is why you see the error:

    Operator 'partition-by': 'join' cannot be used inside the subquery

    While the documentation indicates that subqueries inside partition can contain various operators, there are some known limitations, and operators that rely on join are one of them.

    To achieve your goal of creating time series per State, you can avoid partition altogether and instead use the by clause directly within make-series, like this:

    StormEvents
    | make-series DamageProperty=max(DamageProperty) default=double(null) on StartTime step 1m by State
    

    This approach groups the time series by State and should give you the results you want without running into the partition limitation.

    Please refer to MS Q&A thread - https://learn.microsoft.com/en-us/answers/questions/1156900/partition-use-subquery-inside-partition-subquery-w addressing similar issue.

    For additional information, please refer: https://learn.microsoft.com/en-us/azure/stream-analytics/stream-analytics-parallelization#example-of-scenarios-that-aren%27t%5C*-embarrassingly-parallel

    I hope this information helps. Please do let us know if you have any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    Thank you.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.