string(value: storable or link) -> string

Produces a string from the argument. A null input stays null. Plain int64 and float64 values use a decimal string form. duration inputs are not cast with the generic string cast; they are routed to format_duration so the text matches duration formatting rules. string and link inputs use their respective specialized string representations when applicable.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

make_col id_text:string(host_id)

Shows string formatting an integer identifier as decimal text for concatenation or display-oriented columns.

make_col window_text:string(duration_sec(90))

Shows string on a duration built with duration_sec, which follows duration formatting rules instead of a raw numeric cast.