Skip to content

Kusto Language Server does handle evaluate ... : (schema) snippet correctly #124

@ghost

Description

Hi,

today I have noticed, that I get a problem reported for the following snippet:

datatable(d:dynamic, Description: string)
[
    dynamic({"Name": "John", "Age":20, "height":180}), "Student",
    dynamic({"Name": "Dave", "Age":40, "height":160}), "Teacher",
    dynamic({"Name": "Jasmine", "Age":30, "height":172}), "Student",
]
| evaluate bag_unpack(d) : (*, Name:string, Age:long)
//                       ^-- "The incomplete fragment is unexpected."

The example is taken from MS Learn - Kusto - bag_unpack plugin and works without issues when executed.

Full error:

[{
	"resource": "/c:/Users/xxx/main.ipynb",
	"owner": "_generated_diagnostic_collection_name_#9",
	"severity": 8,
	"message": "The incomplete fragment is unexpected.",
	"startLineNumber": 8,
	"startColumn": 26,
	"endLineNumber": 8,
	"endColumn": 27,
	"origin": "extHost2"
}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions