max#
- max(input)[source]#
Finds the maximum value among non-null elements in the input expression.
Example:
SELECT max(x) FROM tbl
╭───────╮ │ x │ │ --- │ │ Int64 │ ╞═══════╡ │ 100 │ ├╌╌╌╌╌╌╌┤ │ 200 │ ├╌╌╌╌╌╌╌┤ │ null │ ╰───────╯ (Showing first 3 of 3 rows)
╭───────╮ │ x │ │ --- │ │ Int64 │ ╞═══════╡ │ 200 │ ╰───────╯ (Showing first 1 of 1 rows)