Skip to content

[BlackboxBenchmarking] Replace INTERVAL duration fields with DOUBLE duration_seconds#5278

Open
dylanjew wants to merge 1 commit into
masterfrom
dylanj/seconds
Open

[BlackboxBenchmarking] Replace INTERVAL duration fields with DOUBLE duration_seconds#5278
dylanjew wants to merge 1 commit into
masterfrom
dylanj/seconds

Conversation

@dylanjew
Copy link
Copy Markdown
Collaborator

@dylanjew dylanjew commented May 15, 2026

F1 doesn't support INTERVAL types natively (b/213368390). This PR replaces the INTERVAL duration fields in cluster-fuzz.fuzzer_stats.daily_stats with DOUBLE duration_seconds.

Rollout

I plan to just drop the existing cluster-fuzz.fuzzer_stats.daily_stats table after this is deployed and rerun the job to backfill the data. Since there are no consumers of this data yet, this seems simpler than doing a dual write + alter table drop column, then changing the job load to stop including the old rows.

The concern I had is that a BigQuery load without the old rows would fail, so dropping the table after this is deployed and then backfilling seems like a simpler approach.

Testing

I verified the SQL query by running it in BigQuery against the cluster-fuzz.fuzzer_stats.daily_stats table.

I dropped the table in dev and ran the cron with the new fields. https://paste.googleplex.com/5110869211086848
https://screenshot.googleplex.com/7iTMbm3Ry6J22ZQ

F1 doesn't support INTERVAL types natively (b/213368390). This PR
replaces the INTERVAL duration fields with DOUBLE duration_seconds.

### Rollout
I plan to just drop the existing cluster-fuzz.fuzzer_stats.daily_stats table after this is deployed and rerunning the job to backfill the data. Since there are no consumers of this data yet, this seems simpler than doing a dual write + alter table drop column, then changing the job load to stop including the old rows.

The concern I had is that a BigQuery load without the old
rows would fail, so dropping the table after this is deployed and then
backfilling seems like a simpler approach.

### Testing
I verified the SQL query by running it in BigQuery against the
cluster-fuzz.fuzzer_stats.daily_stats table.
@dylanjew dylanjew requested a review from a team as a code owner May 15, 2026 18:26
@dylanjew dylanjew requested a review from aakallam May 15, 2026 18:30
@dylanjew dylanjew changed the title Replace INTERVAL duration fields with DOUBLE duration_seconds [BlackboxBenchmarking] Replace INTERVAL duration fields with DOUBLE duration_seconds May 15, 2026
@dylanjew dylanjew requested a review from ViniciustCosta May 15, 2026 18:40
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.

2 participants