Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-12393

Beam SQL support for HLL count

Details

    Description

      There is support for HLL sketch in Ptransform:

       

      p.apply("Int", Create.of(ints)).apply("IntHLL", ApproximateCountDistinct.globally()
      .withPercision(PRECISION));

       

      or 

       

      PCollection<KV<Integer, Long>> result =
      p.apply("Long", Create.of(longs)).apply("LongHLL", ApproximateCountDistinct.perKey());
       
      

      But, no support for beam sql. 
      We can't initiate it to be used  in SqlTransform (even the combiner: HllCountMergePartialFn exists)

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              brachi_packter Brachi Packter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h