Skip to main content
Returned by Table.search, retrieval db.sql(...), and pages from sql_stream.

Methods

to_pandas() -> DataFrame

Convert to a pandas-compatible dict structure (requires pandas for convenient use).

to_polars() -> DataFrame

Convert to Polars (requires polars installed).

explain() -> str

Human-readable metrics string (tier candidate counts, decompressions).

Properties

provenance -> str | None

Structured JSON provenance trace. Only populated when explain=True was passed to Table.search. Returns None otherwise. The JSON string contains a ProvenanceRecord with per-tier candidate lists, drop reasons, and latency:
Schema:
Drop stages: The same record is appended to <db>/<table>/_search_log.ndjson on disk for offline analysis. See Retrieval provenance for query patterns and use cases.

Analytics results

GROUP BY queries return an analytics wrapper with the same to_pandas() / to_polars() methods and columns named after the group key and aggregate (for example tag, count).