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.
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.
To select a column name with spaces, use the back tick symbol with column name. The symbol is ( ` `).
Azure Data Explorer a.k.a Kusto is a log analytics cloud platform optimized for ad-hoc big data queries.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With