aws / pg_tle

Framework for building trusted language extensions for PostgreSQL
Apache License 2.0
337 stars 30 forks source link

Add example of ndistinct computation #256

Closed samimseih closed 10 months ago

samimseih commented 11 months ago

Description of changes: Add an example of a pl/rust function that calculates and sets the n_distinct value of a column. The calculation is performed using the HLL [1] extension.

[1] https://github.com/citusdata/postgresql-hll

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.