Skip to content

Commit

Permalink
Improve MakeSetDigest function Generic Parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Akanksha-kedia authored and tdcmeehan committed Oct 2, 2023
1 parent a635c34 commit 57a783e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions presto-docs/src/main/sphinx/functions/setdigest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Serializing these data structures allows them to be efficiently stored and, if n
systems or sessions.
Once stored, they can then be deserialized back into to their original state when they need to be used again.
In the context of Presto, you might normally do this using functions that convert these data sketches to and from binary.
An example might include using to_utf8() or from_utf8().
An example might include using ``to_utf8()`` or ``from_utf8()``.

Functions
---------
Expand All @@ -75,17 +75,12 @@ Composes all input values of ``x`` into a ``setdigest``.
Create a ``setdigest`` corresponding to a ``varchar`` array::

SELECT make_set_digest(value)
FROM (VALUES 'Trino', 'SQL', 'on', 'everything') T(value);


Error : Unexpected parameters (varchar(10)) for function make_set_digest.
Expected: make_set_digest(bigint)
FROM (VALUES 'Presto', 'SQL', 'on', 'everything') T(value);


.. function:: merge_set_digest(setdigest) -> setdigest

Returns the ``setdigest`` of the aggregate union of the individual ``setdigest``
Set Digest structures.
Returns the ``setdigest`` of the aggregate union of the individual ``setdigest`` structures.

Examples::

Expand Down

0 comments on commit 57a783e

Please sign in to comment.