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
DATETIME_DIFF implementation varies between postgres and bigquery #1549
As raised in #1529, DATETIME_DIFF in PostgreSQL calculates a fractional number, whereas DATETIME_DIFF in BigQuery returns a whole number. This results in a subtle divergence of the concepts in the two dialects. urine_output_rate may be affected as various comparisons expected fractional values to be returned:
Activity
chessing234 commentedon Jul 16, 2026
PR up: urine_output_rate uses SECOND-based diffs like kdigo_uo.
chessing234 commentedon Jul 16, 2026
Opened #2059 —
FLOORon postgresDATETIME_DIFF(iii/iv) to match BQ truncation.chessing234 commentedon Jul 23, 2026
addressed in #2124
chessing234 commentedon Jul 23, 2026
urine_output_rate now uses SECOND-based DATETIME_DIFF like kdigo_uo. See #2124.
chessing234 commentedon Jul 23, 2026
urine_output_rate now uses SECOND-based DATETIME_DIFF in #2124.
chessing234 commentedon Jul 25, 2026
Fixed in #2126 — urine_output_rate now uses second-based DATETIME_DIFF like kdigo_uo.