fix: handle unsupported types and empty results in describe (#2506) · googleapis/python-bigquery-dataframes@2326ad6 · GitHub
Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 2326ad6

Browse files
authored
fix: handle unsupported types and empty results in describe (#2506)
The .describe() method attempts to compute metrics like mean, max, and unique on all columns. For MM complex types (structs representing images/videos), running COUNT(DISTINCT column) or mathematical aggregates is physically prohibited by BigQuery and raises syntax/type validation errors. We limit aggregations on OBJ_REF_DTYPE and JSON columns to only a basic .count(), skipping unhashable/unsupported summary metrics. Fixes #<452681068> 🦕
1 parent 91b6c24 commit 2326ad6

2 files changed

Lines changed: 45 additions & 3 deletions

File tree

bigframes/pandas/core/methods/describe.py

Lines changed: 6 additions & 3 deletions

tests/system/small/pandas/test_describe.py

Lines changed: 39 additions & 0 deletions

0 commit comments

Comments
 (0)