Skip to content

test(snuba): accept DateTime meta without Universal spelling - #122091

Open
phacops wants to merge 3 commits into
masterfrom
phacops/fix/datetime-meta-not-universal
Open

test(snuba): accept DateTime meta without Universal spelling#122091
phacops wants to merge 3 commits into
masterfrom
phacops/fix/datetime-meta-not-universal

Conversation

@phacops

@phacops phacops commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Why

Snuba is dropping clickhouse-driver. Result meta for UTC timestamps will be DateTime or DateTime('UTC'), not DateTime('Universal').

get_json_type already maps any DateTime(...) to "date". Tests were pinned to the old driver spelling.

What

  • Normalize DateTime timezone spellings in snuba meta assertions
  • Explicitly treat bare DateTime as a date in get_json_type

Needed so getsentry/snuba#8307 sentry CI does not fail on exact meta strings.

clickhouse-connect reports DateTime / DateTime('UTC'). Production
get_json_type already treats any DateTime(...) as a date. Normalize
test comparisons so they pass against both the old driver spelling
and the HTTP driver.
@phacops
phacops requested review from a team as code owners August 14, 2026 20:58
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 14, 2026
Strip DateTime timezone args from Snuba result meta so we do not leak driver protocol spellings like DateTime('UTC') or DateTime('Universal'). Time columns are just datetime.
@phacops
phacops requested a review from a team as a code owner August 14, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants