question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

KQL Kernel doesn't handle empty lines in cells

See original GitHub issue

Describe the bug

When executing a cell with a blank line in it something seems to go wrong with sending the query to the backend and it errors out.

e.g.

#!kql-mydatabase
let x = "Hello world!";
let y = 10;

print x, y;

fails. This works just fine in Data Explorer though.

Please complete the following:

Which version of .NET Interactive are you using? There are a few ways to find this out:

Latest from main

  • OS
    • Windows 10
    • macOS
    • Linux (Please specify distro)
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Visual Studio Code Insiders
    • Other (please specify)

Screenshots

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Charles-Gagnoncommented, Oct 14, 2021
0reactions
JustinMDotNetcommented, Nov 2, 2021

Oh huh, well that’s weird. Could swear it worked for me when I tried it in data explorer earlier…ok well I don’t understand why this behaves like this but guess we can close this as “working as intended”

I thought so too :-. Sorry for the confusion, I should’ve mentioned sooner.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KQL Can't handle empty strings when using column_ifexists
Even we use isempty() or even alter the statement, as it is not having the habit of considering the empty string, it will...
Read more >
jupyter-Kqlmagic/HISTORY.md at master
kqlmagic command. -optional line can start with %kql. ipython line magic; ipython cell magic. must be followed by an empty line or end...
Read more >
isnotempty() - Azure Data Explorer
Learn how to use the isnotempty() function to check if the argument isn't an empty string.
Read more >
Source - GitHub
And each block may be either: - multi line kql query - must be followed by an empty line or end of cell...
Read more >
KQL "let" keyword doesn't work consistently
Hi,. It would be nice to be able to simplify my KQL queries by pulling some information out into "let" statements. That is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found