timescale / timescaledb-toolkit

Extension for more hyperfunctions, fully compatible with TimescaleDB and PostgreSQL 📈
https://www.timescale.com
Other
383 stars 47 forks source link

Incorrect documentation for gp_lttb #791

Open WireBaron opened 10 months ago

WireBaron commented 10 months ago

Describe the bug Documentation for gp_lttb lists the arguments as (time, value, resolution, then optional gapsize), but the actual implementation is (time, value, optional gapsize, then resolution). Given that this isn't a valid postgresQL function definition (the actual implementation using multiple functions to achieve this), the fix here is probably changing the code to match the documentation rather than the other way around.