microsoft / jupyter-Kqlmagic

Extension (Magic) to Jupyter notebook and Jupyter lab, that enable notebook experience working with Kusto, ApplicationInsights, and LogAnalytics data.
Other
85 stars 31 forks source link

fork_result(1) doesn't change once set #88

Closed abhijitpai closed 2 years ago

abhijitpai commented 2 years ago

Create a cell after initializing kql magic and run:

%kql x << datatable(foo:int) [1,2,3] | fork (summarize count()) (summarize max(foo)) display(x.fork_result(0)) display(x.fork_result(1))

Actual and Expected Output: count_ as 3 and max_foo as 3

Update the query as below and rerun the cell:

%kql x << datatable(foo:int) [1,2,3] | fork (summarize min(foo)) (summarize sum(foo)) display(x.fork_result(0)) display(x.fork_result(1))

Actual Output: min_foo as 1 and max_foo as 3. Expected Output: min_foo as 1 and sum_foo as 6.

mbnshtck commented 2 years ago

Hi, I fail to reproduce it. It works OK on my machine. So I would like to ask you tp do the following. After executing the update query, please execute '%lql --bugreport' review the output and if it conatins secrets please obfuscate them, copy the obfuscated output and send to my email: michabin@microsoft.com