For the complete documentation index, see llms.txt. This page is also available as Markdown.

Data Types

getschema

You can use this commmand piped at the end of any table to see the table schema.

VMComputer
| getschema

List of KQL datatypes

  • Bool

  • Datetime

  • Dynamec

  • GUID

  • Int

  • Long

  • Real

  • String

  • Timespan

  • Decimal


Bool

Field that has either Yes No or null value.

Datetime

Represents an instance of time. It represents data + time but can display only date or only time as well. UTC is default timezone.

Decimal

128bit lenght decimal number.

Slower procesing time for this datatype than regular number.

Dynamic

dynamic in KQL is a flexible data type that can store JSON-like data instead of a single value.

You can than access the values liek this:

Dynamic datatype is heavy, and does not work with some operators.

GUID

Not common, global unique identifier.

Ussualy a unique string datatype.

Int

Integeer

32bits and represent a whole number. No decimals

Long

64bits in size. not used that much only in special situation.

Real

64bits in size, but allow for a decimal point and more ised than a decimal type.

String

Mostu used datatype. Sequence of unicode chars.

Is btw brackets. Can contain kletters, numbers and symbols

Special chars ( / )

if you want to notate someone, you can use a slash before the quotes so that the quotes print as well.

Timespan

Messures the lenght of time btw two intervals.

Can be messured in days, hours, muinutes, second, miliseconds...

Example:

We can see that the difference column got a "timespan" datatype.


Null

Sometimes a field is blank, if its a string datatype, than its just empty, if it anything else its 'Null'


Casting

A term used when changing a datatype from one to another

Below we have 2 integers, we will chnage them to string datatypes.

Since we changed datatypes now we can not perform math operations on the strings.

Last updated