microsoft / Kusto-Query-Language

Kusto Query Language is a simple and productive language for querying Big Data.
Apache License 2.0
510 stars 97 forks source link

.create-or-alter mapping recognized as CreateOrAleterWorkloadGroup #99

Closed vplauzon closed 1 year ago

vplauzon commented 1 year ago

When I parse the following:

.create-or-alter table MyTable ingestion csv mapping "Mapping1"

[ { 'column' : 'rownumber', 'DataType' : 'int', 'Properties' : { 'Ordinal' : '0' } } ]

The parsed command returned has a CommandKind == "CreateOrAleterWorkloadGroup" (instead of "CreateTableIngestionMapping" or similar).

vplauzon commented 1 year ago

When using a .create (not .create-or-alter), the command kind is "CreateTableIngestionMapping"

mattwar commented 1 year ago

There does not appear to be a create-or-alter table ingestion mapping command defined for intellisense. There is a create and an alter, but not a create-or-alter.

vplauzon commented 1 year ago

Can we add it?

mattwar commented 1 year ago

I've added these command variations to Kusto.Language. It should work now.

vplauzon commented 1 year ago

Thank you! I assume the package will be updated with those changes in next publish?