Skip to content

Add _resolve_time_grain to validate/resolve time_grain (handles "auto").#1204

Open
aagbsn wants to merge 2 commits into
masterfrom
add_where_date_granularity
Open

Add _resolve_time_grain to validate/resolve time_grain (handles "auto").#1204
aagbsn wants to merge 2 commits into
masterfrom
add_where_date_granularity

Conversation

@aagbsn
Copy link
Copy Markdown
Contributor

@aagbsn aagbsn commented May 14, 2026

Refactor group_by_date and add where_by_date to not repeat code
Make WHERE use gmap functions (e.g. toDate, toStartOfHour) on both column and params so ClickHouse aggregate projection can match.
Replace raw measurement_start_time >= / < clauses with where_by_date call and preserve :since/:until params._

aagbsn added 2 commits May 14, 2026 20:23
Refactor group_by_date and add where_by_date to not repeat
Make WHERE use gmap functions (e.g. toDate, toStartOfHour) on both column and params so ClickHouse aggregate projection can match.
Replace raw measurement_start_time >= / < clauses with where_by_date call and preserve :since/:until params._
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant