Tinybird rebuilt their Time Series feature from scratch, translating user selections into SQL queries that handle ClickHouse-specific challenges. The implementation addresses time gap filling with arrayJoin and full outer joins, timestamp alignment using toStartOfInterval, and adaptive granularity based on time ranges. The
Table of contents
The ArchitectureThe SQL ChallengeUI PolishObservability IntegrationWhen the Alert FiresTry ItSort: