Skip to content

Commit

Permalink
List all input types for geometric_mean in doc
Browse files Browse the repository at this point in the history
geometric_mean actually support input type: BIGINT, DOUBLE, REAL,
but only DOUBLE is described in the doc.
  • Loading branch information
xumingming authored and tdcmeehan committed Oct 16, 2023
1 parent 6661a55 commit c2bc8d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions presto-docs/src/main/sphinx/functions/aggregate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,11 @@ General Aggregate Functions

This is an alias for :func:`bool_and`.

.. function:: geometric_mean(x) -> double
.. function:: geometric_mean(bigint) -> double
geometric_mean(double) -> double
geometric_mean(real) -> real

Returns the geometric mean of all input values.
Returns the `geometric mean <https://en.wikipedia.org/wiki/Geometric_mean>`_ of all input values.

.. function:: max_by(x, y) -> [same as x]

Expand Down

0 comments on commit c2bc8d1

Please sign in to comment.