Brachi Packter created BEAM-12393:
-------------------------------------

             Summary: Beam SQL support for HLL count
                 Key: BEAM-12393
                 URL: https://issues.apache.org/jira/browse/BEAM-12393
             Project: Beam
          Issue Type: Improvement
          Components: extensions-java-sketching
            Reporter: Brachi Packter


There is support for HLL sketch in Ptransform:

 
{code:java}
p.apply("Int", Create.of(ints)).apply("IntHLL", 
ApproximateCountDistinct.globally()
.withPercision(PRECISION));{code}
 

or 

 
{code:java}
PCollection<KV<Integer, Long>> result =
p.apply("Long", Create.of(longs)).apply("LongHLL", 
ApproximateCountDistinct.perKey());
 
{code}
But, no support for beam sql. 
We can't initiate it to be used  in SqlTransform (even the combiner: 
HllCountMergePartialFn exists)

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to