interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Bug: KQL Boolean Values Displayed as `1` or `0` Instead of `true` , `false` in Polyglot Notebooks

Open asilverman opened this issue 1 year ago • 0 comments

Description:
I observed that when printing a boolean result in Polyglot Notebooks using the KQL magic command, the value is displayed as 1 instead of the expected true. This behavior is inconsistent with how boolean values are generally represented and can cause confusion.

Steps to Reproduce:

  1. Use the following KQL code in a Polyglot Notebook:
    let A = 1;
    let B = 1;
    print AreEqual=(A == B);
    
  2. Observe the result in the output display.

Image

Expected Behavior:
The value of AreEqual should be displayed as true, consistent with how boolean values are typically represented.

Actual Behavior:
The value of AreEqual is displayed as 1 in the output.

Proposed Solution:
Boolean values (bool type) should be displayed as true or false, aligning with standard representations across programming and query languages.

Configuration Details:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

Image

  • OS
    • [x] Windows 11
  • Frontend
    • [x] Visual Studio Code Insiders

Visual Studio Code Extension Details

Name: Polyglot Notebooks
Id: ms-dotnettools.dotnet-interactive-vscode
Description: Polyglot Notebooks for VS Code. Use multiple languages in one notebook with full language server support for each language and share variables between them.
Version: 1.0.6070011
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-interactive-vscode

asilverman avatar Jan 23 '25 01:01 asilverman