Skip to content

Commit 73c2945

Browse files
KIRITOLTRsteveburnett
authored andcommitted
Fix the khyperloglog_agg() example
1 parent a083fd5 commit 73c2945

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

presto-docs/src/main/sphinx/functions/aggregate.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -851,11 +851,11 @@ Approximate Aggregate Functions
851851
See :doc:`khyperloglog`.
852852
::
853853

854-
SELECT cardinality(khyperloglog_agg(user_id)) AS approx_distinct_users
854+
SELECT cardinality(khyperloglog_agg(x,y))
855855
FROM (
856-
VALUES (101), (102), (103), (101), (104)
857-
) AS t(user_id);
858-
--(4)
856+
VALUES (1,101), (2,102), (3,103), (4,101), (5,104)
857+
) AS t(x,y);
858+
--(5)
859859

860860
.. function:: merge(qdigest(T)) -> qdigest(T)
861861
:noindex:

0 commit comments

Comments
 (0)