Review every statement datarig sends on its own

Open
#329 6 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@DokaDev is already working on this.

Since Nov 12, 2026.

  • #422 by @DokaDev — merged
  • #423 by @DokaDev — merged
  • #426 by @DokaDev — merged

Assessment

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

Research direction

Start by locating datarig’s code that builds or sends statements for metadata, monitoring, paging, counts, estimates, exports, session setup, and transaction control; the issue does not name specific files or tests. Review each path on PostgreSQL and MySQL for the listed risks, then add a failing test and fix for each finding. Done means the inventory has been reviewed, identified issues have tests and fixes, and inexpensive checks guard against regressions.

Written by the indexing model from the issue text.

Description

internal roadmap
Summary

A one-time review of every statement datarig sends to a server on its own, and of everything that can change session state, on PostgreSQL and MySQL. So far these areas have been checked piece by piece while building features; recent fixes (#313, #326, #327) show they deserve a dedicated pass.

Scope

In:

  • An inventory of every statement datarig builds or sends itself: metadata reads, monitor reads, paging, counts, estimates, export, session setup, transaction control.
  • For each: how names and values are placed in the text, whether operators and functions are qualified, which transaction it runs in, whether it can take locks, whether it can change or use up session state (isolation, access mode, autocommit, variables), and what happens if it fails halfway.
  • Fixes for what the review finds, each with a test that fails first.
  • Tests or checks that keep the same mistakes from coming back where that is cheap.

Out: statements the user writes (those go through the existing checks), new features.

Status

Backlog.

Plan history
  • 2026-11-11: Issue opened.
Also in scope

Check code that has already shipped for the bug classes found while building table filtering: how values are written per engine (numbers, floats, dates and time zones, booleans, binary), case and accent rules, NULL ordering, isolation levels of the reads datarig runs on its own, and differences between MySQL and MariaDB. Each finding gets a fix or a tracked item.

Checklist
  • PostgreSQL: a row count or a count of a column's values without a time limit ([results] count_timeout = "off", and the count in the edit preview) sets no lock limit, so it can wait without end for a lock another session holds.
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.