mirror of
https://github.com/monoscope-tech/monoscope.git
synced 2026-11-16 10:18:01 +00:00
monoscope built UTCTime from OTel nanoseconds via a lossy Double /1e9 (a 2026 ns value ~1.78e18 exceeds Double's 52-bit mantissa) and sent full-precision ISO-8601 text to both engines. Postgres/TimescaleDB rounds excess fractional digits on ::timestamptz while DataFusion/TimeFusion truncates, so ~39% of rows landed exactly 1µs apart, breaking exact-timestamp equality/joins across the two stores. - nanosecondsToUTC: exact integer picosecond math (MkFixed ns*1000) - roundUTCToMicros + tsColumn: µs-quantize (round-half-up) the wire text so both engines parse an identical <=6-digit value. Covers end_time, start_time, observed_timestamp. Rounding keeps TimescaleDB's existing values unchanged and pulls TF onto them. Adds TimestampMicrosSpec regression guard. |
History
|
|
|---|---|---|
| .. | ||
| DeterministicIdSpec.hs | ||
| MetricServiceNameSpec.hs | ||
| TimestampMicrosSpec.hs | ||