Table profiling from planner statistics

Open
#300 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
mysql, postgresql, rust
Domain
cli, databases

Research direction

Start by reading the table filter work in issue #297 and the existing PostgreSQL and MySQL statistics support. The issue calls for a design pass covering both databases before implementation; define how approximate statistics, stale or missing data, and explicit sampled reads are presented. Done means the design and implementation cover per-column summaries, compact bars, most common values, and documentation, while leaving correlations out.

Written by the indexing model from the issue text.

Description

enhancement roadmap
Summary

A quick picture of a table's columns without reading the table: null share, distinct values, most common values and value ranges, taken from the statistics the database already keeps for its query planner.

Scope

In:

  • Per-column summary from planner statistics (PostgreSQL column statistics, MySQL histograms)
  • Compact bars in the column list: composition for categorical columns (including the null share), a range bar for numbers and dates
  • Selecting a column shows its most common values
  • Exact numbers only on explicit request, from a sample, with a confirmation and a time limit

Out (for now): correlations between columns.

Design notes
  • No table reads by default: the profile comes from statistics only, labelled as approximate together with the age of the statistics.
  • Missing or stale statistics are shown as unknown, never as zero.
  • A design pass comes first, covering PostgreSQL and MySQL together.
Status

Planned, after the table filter work (#297).

Related
  • Design
  • Implementation (PostgreSQL and MySQL)
  • Docs
Plan history
  • 2026-11-10: Issue opened. Planned after the table filter work, which was moved ahead of it.
Dominant language
Rust
Stars
166
Forks
8
Avg merge
4h 24m
Merged PRs (30d)
291

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DokaDev/datarig

All issues in DokaDev/datarig

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.