You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
range_calendar / date filters cannot filter a TIMESTAMP column on BigQuery (DATE vs TIMESTAMP) #3333
On BigQuery, a date filter pointed at a TIMESTAMP column fails at query time. Evidence emits a DATE literal, and BigQuery does not implicitly coerce DATE to TIMESTAMP in a comparison.
Environment
Evidence CLI v0.9.3 (latest)
BigQuery direct connector
Steps to reproduce
Given a table whose time column is TIMESTAMP (start_time):
Every component bound to that filter renders an error instead of a chart:
No matching signature for operator >= for argument types: TIMESTAMP, DATE
Signature: T1 >= T1
Unable to find common supertype for templated argument <T1>
Input types for <T1>: {DATE, TIMESTAMP} at [18:9]
Expected
The filter should work against a TIMESTAMP column — either by casting the column (DATE(col) >= DATE '…') or by emitting a TIMESTAMP literal.
Workaround
Cast in the query and point value_column at the cast column:
selectdate(start_time) as start_date, ...
frommy_dataset.my_table
Medium. There is a clean workaround, but the failure mode is confusing: the calendar and every dependent component break at once, and the error surfaces as a SQL type error with no hint that it originates in the date filter. TIMESTAMP is the natural type for event time columns in BigQuery, so this is likely to hit most BigQuery users.
BigQuery date filters now emit untyped string bounds (col >= '2020-01-01' AND col < '2020-02-01') instead of DATE '…' literals. BigQuery coerces those to the column’s type, so DATE, DATETIME and TIMESTAMP columns all work, and the exclusive next-day upper bound keeps the whole last day for timestamps. Other warehouses’ SQL is unchanged.
Not covered yet: prior-period comparisons (delta / big_value comparison) still build DATE_ADD(DATE '…') bounds. I’ve noted that in the PR as a follow-up.
Activity
HusnainMaroof commentedon Nov 20, 2026
I’ve opened a fix in evidence-dev/evidence#3381 · fix(core): BigQuery date filters….
BigQuery date filters now emit untyped string bounds (col >= '2020-01-01' AND col < '2020-02-01') instead of DATE '…' literals. BigQuery coerces those to the column’s type, so DATE, DATETIME and TIMESTAMP columns all work, and the exclusive next-day upper bound keeps the whole last day for timestamps. Other warehouses’ SQL is unchanged.
Not covered yet: prior-period comparisons (delta / big_value comparison) still build DATE_ADD(DATE '…') bounds. I’ve noted that in the PR as a follow-up.