title: Need help to Understand KUSTO Scan operator
body: <p>Can someone please explain how the output is prepared from this query.
  Not able to under why records are repeated in the output.</p>
  <pre><code>let tbl = datatable(Ts: timespan, nodeState:string) 
  [ 0m, &quot;Ready&quot;, 
    1m, &quot;Ready&quot;, 
    2m, &quot;Ready&quot;, 
    3m, &quot;Ready&quot;, 
    4m, &quot;Ready&quot;, 
    5m, &quot;Ready&quot;, 
    6m, &quot;Ready&quot;, 
    7m, &quot;Ready&quot;, 
    8m, &quot;Ready&quot;, 
    9m, &quot;HumanInvestigate&quot; ];
  let b = tbl 
  |order by Ts asc 
  |scan with_match_id = mid declare (steps:string ) with ( 
  step s1 output = all: nodeState ==&quot;Ready&quot; =&gt; steps=&quot;s1&quot;; 
  step s2: true =&gt; steps=&quot;s2&quot;; 
  step s3 output =all : nodeState == &quot;HumanInvestigate&quot; =&gt; steps=&quot;s3&quot;; );
  </code></pre>