timescale / timescaledb-toolkit

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

fix: correct broken serialization #828

Closed JamesGuthrie closed 1 week ago

JamesGuthrie commented 1 week ago

Unfortunately the usage of Internal in function APIs throws type safety out of the window. A handful of aggregate serialization functions were incorrectly implemented, and operated on the incorrect type, resulting in incorrect data in the serialized type.

Fortunately, this serialization is only used when partial aggregation kicks in, so is not always triggered.

JamesGuthrie commented 1 week ago

This should fix https://github.com/timescale/timescaledb-toolkit/issues/811