Skip to content

Start BigQuery week buckets on Monday - #433

Merged
nicosuave merged 2 commits into
mainfrom
bigquery-monday-weeks
Oct 20, 2026
Merged

nicosuave merged 2 commits into
mainfrom
bigquery-monday-weeks

Conversation

@nicosuave

Copy link
Copy Markdown
Member

BigQuery's bare WEEK date part starts on Sunday, so __week time dimensions, week retention cohorts, and this week-style relative dates compiled for BigQuery bucketed differently from every other dialect (DuckDB, Postgres, Snowflake, Spark all use Monday weeks). Both the Python and Rust compilers now emit WEEK(MONDAY) for BigQuery, matching what Ossie export already does. This changes week results for existing BigQuery queries.

This also moves the lock to sqlglot/sqlglotc 30.23.0. sqlglotc 30.1.0 is no longer on the PyPI index, so the release workflow re-locks to 30.23 anyway; sqlglot 30.23 is what surfaced the week mismatch, since it now reads BigQuery WEEK as Sunday-start when transpiling. The yardstick replay test helper handles 30.23 parsing DROP targets into tables instead of this.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T13:41:43.320971Z e90cf23 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@nicosuave
nicosuave merged commit 87ea9de into main Oct 20, 2026
45 of 46 checks passed
@nicosuave
nicosuave deleted the bigquery-monday-weeks branch October 20, 2026 14:53
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