Skip to main content Skip to complementary content

length

Last updated: 9/10/2026

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.

Arguments

Element for which you want to return the length.

Examples

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 – please let us know!