ES|QL SPACE function

Returns a string made of the specified number of spaces.

Embedded
number

Number of spaces in result.

Returns a string made of number spaces.

Note

If number is greater than 1048576, SPACE returns null and emits a warning. If number is a constant above that limit, the query fails instead.

number result
integer keyword
ROW message = CONCAT("Hello", SPACE(1), "World!");
		
message:keyword
Hello World!