Review every statement datarig sends on its own
Maintainers usually reply within 1 day
@DokaDev is already working on this.
Since Nov 12, 2026.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
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
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DokaDev/datarig
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
DokaDev/datarig#544 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 Half a day Newbie friendliness 55/100
Maintainers usually reply within 1 day
Similar issues
-
bug P2: medium
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 86/100
-
tests
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
vfarcic/dot-agent-deck#2512 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
pop-os/cosmic-applets#1641 ·
Maintainers usually reply within 3 days