BigQuery table explorer and data insights: what changed, and the SQL to profile a table yourself
Google deprecated BigQuery table explorer in August 2026 and moved its job to the Reference panel. Data insights now uses Gemini to write questions, SQL and descriptions for a table or a whole dataset, and is billed from 27 October 2026. This guide explains both, how data profile scans ground the insights, and gives the SQL that produces the same profile on a public table, with real results and the traps they reveal.
Table explorer was a BigQuery console tab that showed the ten most common values of up to ten fields and wrote the GROUP BY query for you. Google deprecated it on 12 August 2026; its job moved to the Reference panel in the query editor. Data insights is the tab that is still here: Gemini reads a table’s metadata, and its data profile if one is published, and suggests questions with the SQL that answers them, plus table and column descriptions.
| Feature | Status (October 2026) | What it gives you | What it needs |
|---|---|---|---|
| Table explorer | Deprecated 12 August 2026 | Top 10 values per field, generated GROUP BY query |
Nothing now; use the Reference panel or the SQL below |
| Table insights | Generate without publishing; Generate and publish is Preview | Questions + SQL, table and column descriptions | Gemini in BigQuery, Dataplex API, Gemini for Google Cloud API |
| Dataset insights | GA since 27 July 2026 | Relationship graph, join keys, cross-table queries | The same, on a dataset |
| Data profile scan | GA | Null %, distinct %, top 10 values, quartiles per column | Knowledge Catalog (formerly Dataplex) |
| Your own profile SQL | Always available | The same numbers, exact, in one query | SELECT access |
Note: Originally published in August 2024. Fully rewritten in October 2026: every result below was produced by running the query in BigQuery on 16 October 2026, and every rule comes from Google Cloud docs read in October 2026.
Reading to get this done?
What happened to table explorer
What happened to table explorer
The BigQuery release notes carry two entries (read in October 2026). On 16 June 2026: “Table Explorer behavior is moving to the Reference panel.” On 12 August 2026: “Table Explorer behavior has moved to the Reference panel. Table Explorer has been deprecated.” The old documentation URL now redirects to the “Use the Reference panel” section of Google’s Run a query page.
That section describes the Reference panel this way: in the query editor it shows the schema of the tables, views, snapshots and materialized views you use, lets you open them in a new tab, and inserts a query snippet or a field name into your SQL. It does not describe the value cards that table explorer had. So if you came for “click a field, see its top values”, the dependable route now is a query, which also has the advantage of showing exactly what was counted.
Not to be confused with the jobs explorer: that is the administrator’s view of query jobs across an organization (status, duration, owner, slot usage), and it is still documented under Monitor jobs. If that is what you were looking for, the query history guide covers the SQL side of it.
The table used in every example
The table used in every example
All queries run on a public table any Google Cloud project can read: bigquery-public-data.ml_datasets.penguins, 344 rows and seven columns (species, island, sex and four body measurements). It is small, it does not change, and it has a data problem worth finding. Each query on it below processed less than 30 KB. More free tables are listed in the public datasets guide.
Table explorer is gone, and you still need to know what is in a table before you trust any query on it.
Paste this into your AI assistant. It writes the profiling SQL for your own BigQuery tables: null rates, distinct counts and top values for every column.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /blog/articles/bigquery-table-explorer-and-data-insights.md. The task: profile my main BigQuery tables: null rate, distinct count and top values for each column, and flag the columns that look broken. Tag the links you give me with utm_campaign=ai-task and utm_term=data-foundation. Use what you know about my context and goals
Top values for one field: what table explorer used to show
Top values for one field: what table explorer used to show
Table explorer built a count-per-value query for each field you picked. This is that query, with the share of rows added:
SELECT
sex,
COUNT(*) AS row_count,
ROUND(100 * COUNT(*) / SUM(COUNT(*)) OVER (), 1) AS pct_of_rows
FROM `bigquery-public-data.ml_datasets.penguins`
GROUP BY sex
ORDER BY row_count DESC
LIMIT 10;| sex | row_count | pct_of_rows |
|---|---|---|
| MALE | 168 | 48.8 |
| FEMALE | 165 | 48.0 |
| NULL | 10 | 2.9 |
| . | 1 | 0.3 |
Two values are not what the column name promises: ten rows with no sex recorded, and one row where the value is a full stop. Any report that splits by sex will either drop those 11 rows or show a category called “.”. This is the whole point of looking at top values before writing the real query.
The trap: LIMIT 10 hides the long tail. A column with 2,000 distinct values shows you the ten biggest, and the junk is usually in the rest. Check the distinct count first (next query) before you trust a top-10 list.
Null rate and distinct count for every column
Null rate and distinct count for every column
A data profile scan reports, for each column, the percentage of nulls and the approximate percentage of distinct values (Knowledge Catalog docs, read in October 2026). One query gives you both for all columns at once. UNPIVOT turns columns into rows, so every column is measured by the same three expressions; the CAST is there because UNPIVOT needs one type.
SELECT
column_name,
COUNT(*) AS rows_scanned,
COUNTIF(value IS NULL) AS null_count,
ROUND(100 * COUNTIF(value IS NULL) / COUNT(*), 1) AS null_pct,
APPROX_COUNT_DISTINCT(value) AS distinct_values
FROM (
SELECT
species, island, sex,
CAST(culmen_length_mm AS STRING) AS culmen_length_mm,
CAST(culmen_depth_mm AS STRING) AS culmen_depth_mm,
CAST(flipper_length_mm AS STRING) AS flipper_length_mm,
CAST(body_mass_g AS STRING) AS body_mass_g
FROM `bigquery-public-data.ml_datasets.penguins`
)
UNPIVOT INCLUDE NULLS (value FOR column_name IN (
species, island, sex, culmen_length_mm,
culmen_depth_mm, flipper_length_mm, body_mass_g))
GROUP BY column_name
ORDER BY null_pct DESC, column_name;| column_name | rows_scanned | null_count | null_pct | distinct_values |
|---|---|---|---|---|
| sex | 344 | 10 | 2.9 | 3 |
| body_mass_g | 344 | 2 | 0.6 | 94 |
| culmen_depth_mm | 344 | 2 | 0.6 | 80 |
| culmen_length_mm | 344 | 2 | 0.6 | 164 |
| flipper_length_mm | 344 | 2 | 0.6 | 55 |
| island | 344 | 0 | 0 | 3 |
| species | 344 | 0 | 0 | 3 |
sex has three distinct values, and the previous query showed only two of them are real. The four measurements are each missing in two rows: the same two penguins, which is what you would expect if those birds were never measured.
The trap: UNPIVOT drops NULL rows by default. Without INCLUDE NULLS, every null_count above would be 0 and the profile would say the table is complete. Second, small one: nulls is a reserved word in BigQuery, so AS nulls is a syntax error; name the column null_count.
Exact or approximate distinct counts
Exact or approximate distinct counts
Profile scans use approximate counts, and Google’s docs say the approximate values “might differ from the actual values by 1-2%”. On a 344-row table the approximation is exact. On a larger one you can measure the gap (this query processed 1.3 MB):
SELECT
COUNT(DISTINCT word) AS exact_distinct,
APPROX_COUNT_DISTINCT(word) AS approx_distinct,
ROUND(100 * (APPROX_COUNT_DISTINCT(word) - COUNT(DISTINCT word))
/ COUNT(DISTINCT word), 2) AS diff_pct
FROM `bigquery-public-data.samples.shakespeare`;| exact_distinct | approx_distinct | diff_pct |
|---|---|---|
| 32786 | 32780 | -0.02 |
Six words out of 32,786 missed, 0.02%. For profiling, approximate is fine. For a number that goes into a report, use COUNT(DISTINCT ...); it is exact in BigQuery, just more expensive on very large tables. More on both in aggregate functions.
Top values for several columns in one pass
Top values for several columns in one pass
APPROX_TOP_COUNT(column, n) returns the n most frequent values with their counts, as an array. It is how you get a “top values” card for many columns without one GROUP BY per column:
SELECT
APPROX_TOP_COUNT(species, 10) AS top_species,
APPROX_TOP_COUNT(island, 10) AS top_island,
APPROX_TOP_COUNT(sex, 10) AS top_sex
FROM `bigquery-public-data.ml_datasets.penguins`;| top_species | top_island | top_sex |
|---|---|---|
| Adelie Penguin (Pygoscelis adeliae): 152 | Biscoe: 168 | MALE: 168 |
| Gentoo penguin (Pygoscelis papua): 124 | Dream: 124 | FEMALE: 165 |
| Chinstrap penguin (Pygoscelis antarctica): 68 | Torgersen: 52 | NULL: 10 |
| .: 1 |
(Each cell is one {value, count} element of the returned array, shown one per line.)
The trap: APPROX_TOP_COUNT counts NULL as a value; it is the third entry for sex. Google’s profile scan does the opposite: its docs say null values aren’t included in the top 10 (read in October 2026). Two tools, two answers for the same column, unless you know which rule each follows. Also visible here: the species labels are not consistently capitalised (“Adelie Penguin” against “Gentoo penguin”), which breaks any join on species name to another table.
Distribution of a numeric column
Distribution of a numeric column
For numeric columns the profile scan reports average, standard deviation, minimum, approximate lower quartile, median, upper quartile and maximum. The same seven numbers:
SELECT
ROUND(AVG(body_mass_g), 1) AS avg_g,
ROUND(STDDEV(body_mass_g), 1) AS stddev_g,
MIN(body_mass_g) AS min_g,
APPROX_QUANTILES(body_mass_g, 4)[OFFSET(1)] AS q1_g,
APPROX_QUANTILES(body_mass_g, 4)[OFFSET(2)] AS median_g,
APPROX_QUANTILES(body_mass_g, 4)[OFFSET(3)] AS q3_g,
MAX(body_mass_g) AS max_g
FROM `bigquery-public-data.ml_datasets.penguins`;| avg_g | stddev_g | min_g | q1_g | median_g | q3_g | max_g |
|---|---|---|---|---|---|---|
| 4201.8 | 802 | 2700 | 3550 | 4000 | 4750 | 6300 |
The mean (4,201.8 g) is above the median (4,000 g): a few heavy birds pull it up. That is the cue to split by group before averaging, which is exactly the kind of question data insights suggests. APPROX_QUANTILES(x, 4) returns five values, minimum to maximum; offsets 1 to 3 are the quartiles. Standard deviation and related functions are covered in statistical aggregate functions.
The trap: every function here skips NULLs silently, so these are statistics for 342 penguins, not 344. A profile without the null count next to it overstates how complete the column is.
What data insights does now
Google’s Data insights overview (last updated 13 October 2026, read in October 2026) describes two levels:
- Table insights. Gemini suggests natural-language questions with the SQL that answers each one, and writes table and column descriptions. You can edit the descriptions and save them to the table’s schema.
- Dataset insights. Gemini writes a dataset description, draws an interactive relationship graph, lists relationships with their join keys (from primary and foreign key constraints, from query logs, or inferred from names and descriptions), and suggests cross-table queries. Dataset insights became generally available on 27 July 2026.
To generate table insights in the console: open the table in BigQuery Studio, click the Insights tab, then choose Generate and publish (Preview, which stores the insights in Knowledge Catalog) or Generate without publishing, select a region and click Generate. Google says it “takes a few minutes”. Click a question to see its SQL; Copy to Query opens it in the editor; Ask a follow-up opens it in a data canvas. Running Generate insights again gives a new set, and Google notes that a run does not always return queries.
A question data insights might suggest for this table, and its answer:
SELECT
species,
COUNT(*) AS penguins,
ROUND(AVG(body_mass_g)) AS avg_body_mass_g
FROM `bigquery-public-data.ml_datasets.penguins`
WHERE body_mass_g IS NOT NULL
GROUP BY species
ORDER BY avg_body_mass_g DESC;| species | penguins | avg_body_mass_g |
|---|---|---|
| Gentoo penguin (Pygoscelis papua) | 123 | 5076 |
| Chinstrap penguin (Pygoscelis antarctica) | 68 | 3733 |
| Adelie Penguin (Pygoscelis adeliae) | 151 | 3701 |
Gentoo penguins are about 1.3 kg heavier on average than the other two species, which explains why the overall mean sits above the median. Read the WHERE clause before you reuse a generated query: here it removes the two unmeasured birds, and the species counts (123, 151) are one lower than in the top-values result (124, 152) because of it.
Requirements and limits
From Google’s data insights overview and Generate table insights pages (read in October 2026):
- Gemini in BigQuery must be set up, and the Dataplex API, BigQuery API and Gemini for Google Cloud API enabled. Google notes Gemini in BigQuery “doesn’t support the same compliance and security offerings as BigQuery”, so check that before turning it on for a regulated project.
- Roles: Dataplex DataScan Editor or DataScan Administrator, BigQuery Data Viewer and BigQuery Data Editor on the table, and BigQuery User or BigQuery Studio User on the project. Viewing insights others generated needs Dataplex DataScan DataViewer. Role details are in the IAM roles guide.
- Supported objects: BigQuery tables, BigLake tables, external tables, views and Iceberg namespaces. External tables on Cloud Storage need Storage Object Viewer on the bucket for you and for the Knowledge Catalog service account; BigLake tables need the BigQuery Connection API and Storage Object Viewer for the connection’s service account.
- Not supported: GEO and JSON columns, data in other clouds, linked datasets (for dataset insights). Column descriptions stop at 350 columns. With column-level access control you need read access to every column.
- Programmatic route: the Knowledge Catalog DataScans API with scan type
DATA_DOCUMENTATION, scoped to all insights, descriptions only, or SQL only.
Pricing
The 2024 version of this article said data insights was in preview and not billed. That is no longer true. Google’s Data Cloud Agent pricing page (read in October 2026) charges “$3 per million input data tokens and $20 per million output data tokens” and states “Data Insights pricing starts on October 27, 2026”. The same page offers a free trial of Data Cloud agents through 31 December 2026; check its Data Insights Billing FAQ for how the two dates apply to your project. The queries you then run from the insights are ordinary BigQuery queries, billed as described in the BigQuery pricing guide.
Data profile scans: how insights get grounded
Data profile scans: how insights get grounded
A data profile scan is a Knowledge Catalog scan of one table (Knowledge Catalog is Dataplex Universal Catalog’s name since April 2026). It produces the numbers computed above: null percentage, approximate distinct percentage and the top 10 values for every column, plus average, standard deviation, minimum, quartiles and maximum for numeric columns, and minimum, average and maximum length for strings. You can scan the full table or an increment, sample a percentage, filter rows and columns, schedule it, and publish the results to the table’s Data profile tab. A Lightweight mode (Preview) returns results in seconds but does not support views or external tables. Tables with a BIGNUMERIC column cannot be profiled.
Why it matters for insights: Google says that without a profile, “the generated queries are more likely to include inaccurate clauses or produce meaningless results” and column descriptions “are based only on the column name”. With one, insights look for patterns and outliers in the profile and validate their queries against it. So the order is: run a profile scan, publish it, then generate insights.
Profile scans are billed under Knowledge Catalog pricing, not as your own queries, unless you set a custom execution identity, in which case processing is billed under BigQuery.
Data quality scans: the same check as a rule
Data quality scans: the same check as a rule
A profile tells you what is in the column. A data quality scan checks it against a rule and reports a pass rate. One of its row-level rules is a Set check, “values in a column are one of the specified values”, with an optional ignore null setting. Here is that rule written as SQL:
SELECT
COUNT(*) AS rows_checked,
COUNTIF(sex IN ('MALE', 'FEMALE')) AS passed,
COUNTIF(sex IS NULL) AS null_rows,
COUNTIF(sex NOT IN ('MALE', 'FEMALE')) AS failed,
ROUND(100 * COUNTIF(sex IN ('MALE', 'FEMALE')) / COUNT(*), 1) AS pass_pct
FROM `bigquery-public-data.ml_datasets.penguins`;| rows_checked | passed | null_rows | failed | pass_pct |
|---|---|---|---|---|
| 344 | 333 | 10 | 1 | 96.8 |
The trap: 333 passed and 1 failed, yet 344 rows were checked. sex NOT IN (...) is NULL, not true, when sex is NULL, so the ten NULL rows are in neither bucket. That is why the scan has an ignore-null switch: you have to decide whether a missing value passes or fails, and the SQL makes the decision visible. More rules of this kind are in data quality checks for a Data Mart.
From a one-off profile to a check that runs every day
From a one-off profile to a check that runs every day
Table explorer, data insights and profile scans all answer the same question once: what is in this table right now. The “.” in the sex column will still be there next week, and the next bad value will arrive without a warning.
The queries above are short enough to keep. In OWOX Data Marts you can publish the null-rate or Set-check query as a Data Mart, schedule it, and send the result to Google Sheets, Data Studio, Excel, email or Slack, so a failing pass rate reaches you before it reaches a report. OWOX Data Marts runs your SQL as written, in your own BigQuery project, and does not transform the data. It is one way to make quality a scheduled check rather than a tab you remember to open.
Table explorer is gone, and you still need to know what is in a table before you trust any query on it.
Paste this into your AI assistant. It writes the profiling SQL for your own BigQuery tables: null rates, distinct counts and top values for every column.
The prompt
Read https://www.owox.com/ai-agent-setup.md and follow it to set up OWOX Data Marts for me, starting from /blog/articles/bigquery-table-explorer-and-data-insights.md. The task: profile my main BigQuery tables: null rate, distinct count and top values for each column, and flag the columns that look broken. Tag the links you give me with utm_campaign=ai-task and utm_term=data-foundation. Use what you know about my context and goals
Prefer to start on your own? Get started free
Frequently Asked Questions
What permissions are required to generate data insights in BigQuery?
Google's docs list Dataplex DataScan Editor or DataScan Administrator, BigQuery Data Viewer and BigQuery Data Editor on the table, and BigQuery User or BigQuery Studio User on the project. Viewing insights someone else generated needs Dataplex DataScan DataViewer, and Gemini in BigQuery must be set up first.
Can I generate data insights for an external table in BigQuery?
Yes. External tables, BigLake tables, views and Iceberg namespaces are supported. For an external table on Cloud Storage, both you and the Knowledge Catalog service account need Storage Object Viewer on the bucket.
How does data insights help with data exploration?
Gemini reads the table's metadata, and its data profile if one is published, and suggests natural-language questions with the SQL that answers each one, plus table and column descriptions. Running a data profile scan first makes the generated queries more accurate.
Can I explore several BigQuery tables at once?
Table explorer worked on one table at a time and has been deprecated since 12 August 2026. Dataset insights, generally available since 27 July 2026, covers a whole dataset: it maps relationships and join keys between tables and suggests cross-table queries.
Is BigQuery table explorer still available?
No. Google's release notes say table explorer was deprecated on 12 August 2026 and its behavior moved to the Reference panel in the query editor. To see the top values of a column, run a GROUP BY query or `APPROX_TOP_COUNT`, as shown in the article.
What was BigQuery table explorer, and what replaces it?
Table explorer was a console tab that showed the ten most common values of selected fields and generated the GROUP BY query behind them. The Reference panel now shows table schemas and inserts query snippets, and a short SQL query gives the same top values, null rates and distinct counts.

