Skip to main content Skip to complementary content


Returns the length of the argument.

Any data type can be used. For bytes, the byte length is returned. When used in a query with an array as argument, this function returns the number of items in the array.


Element for which you want to return the length.


Expression Result
length(0xFFFF) 2

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!