Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does extend operator support whitespace when specify a new column name?

When I want to generate a new column name with extend, and the new column name contains a white space, code like below:

requests 
| extend "users name" = ""
//other codes

then an error occurs: Query could not be parsed at '=' on line xxx. So the question is that can we use white space in the new column name with extend?

I also tried use single quote, still the same error.

like image 663
Ivan Yang Avatar asked May 10 '19 06:05

Ivan Yang


People also ask

What does extend do in kusto?

The extend operator adds a new column to the input result set, which does not have an index. In most cases, if the new column is set to be exactly the same as an existing table column that has an index, Kusto can automatically use the existing index.

How do I create a column name with a space in SQL?

To select a column name with spaces, use the back tick symbol with column name. The symbol is ( ` `).

What is kusto?

Azure Data Explorer a.k.a Kusto is a log analytics cloud platform optimized for ad-hoc big data queries.


1 Answers

You need to use the square brackets:

datatable(['a b']:string)["this works"]

See more: https://docs.microsoft.com/en-us/azure/kusto/query/schema-entities/entity-names

like image 108
Avnera Avatar answered Jan 02 '23 17:01

Avnera