What is the partition limit in BigQuery, and what problems arise when partitions are too small or too numerous?

Quick Overview

Explain the BigQuery limits on partitions per table and per job, and what goes wrong when a table has too many or too small partitions. Tests partition granularity choices, metadata and pruning trade-offs, and when clustering or expiration is the better design.

What is the partition limit in BigQuery, and what problems arise when partitions are too small or too numerous?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Other

What is the partition limit in BigQuery, and what problems arise when partitions are too small or too numerous? ```hint Do the arithmetic Convert the partition cap into a time span for hourly, daily and monthly partitioning. ``` ```hint Per-partition cost Think about what BigQuery has to track and read for each partition a query touches, and how much data sits behind each one. ``` ### What a Strong Answer Covers - The per-table partition cap and the separate per-job limit, and how much history each allows at different granularities. - What fails when a table or a job goes over those limits. - The costs of many small partitions for metadata, query planning and storage efficiency. - How to pick a granularity, and when clustering, expiration or a different partitioning column is the better fix. ### Follow-up Questions - A table is partitioned by hour and holds three years of data. What breaks, and how would you redesign it? - When would you choose clustering over partitioning? - How do partition expiration and `require_partition_filter` help with cost and with the limits? - How would you backfill 15 years of daily data into a date-partitioned table?

Overview: Explain the BigQuery limits on partitions per table and per job, and what goes wrong when a table has too many or too small partitions. Tests partition granularity choices, metadata and pruning trade-offs, and when clustering or expiration is the better design.

General logo
General
Nov 24, 2026
mediumData ScientistOtherData Manipulation (SQL/Python)
0
0

What is the partition limit in BigQuery, and what problems arise when partitions are too small or too numerous?

What a Strong Answer Covers Guidance

  • The per-table partition cap and the separate per-job limit, and how much history each allows at different granularities.
  • What fails when a table or a job goes over those limits.
  • The costs of many small partitions for metadata, query planning and storage efficiency.
  • How to pick a granularity, and when clustering, expiration or a different partitioning column is the better fix.

Follow-up Questions Guidance

  • A table is partitioned by hour and holds three years of data. What breaks, and how would you redesign it?
  • When would you choose clustering over partitioning?
  • How do partition expiration and require_partition_filter help with cost and with the limits?
  • How would you backfill 15 years of daily data into a date-partitioned table?