Help us shape the future of Go! Take the 2026 Go Developer Survey

approx

package
v0.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package approx provides approximate aggregate functions.

Provided functions:

  • approx_count_distinct(X, ...): approximate count of distinct elements using HyperLogLog.
  • approx_count_distinct_accumulate(X, ...): accumulates elements into a HyperLogLog sketch BLOB.
  • approx_count_distinct_combine(B): merges HyperLogLog sketch BLOBs into a single sketch BLOB.
  • approx_count_distinct_estimate(B): estimates the cardinality from a HyperLogLog sketch BLOB.

Sketch BLOBs use the Aggregate Knowledge HLL Storage Specification (version 1), compatible with PostgreSQL's postgresql-hll extension.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(db *sqlite3.Conn) error

Register registers approximate aggregate functions.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL