• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

joaoh82 / rust_sqlite / 26806010656
70%

Build:
DEFAULT BRANCH: main
Ran 02 Jun 2026 07:50AM UTC
Jobs 1
Files 62
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jun 2026 07:47AM UTC coverage: 69.235% (+0.3%) from 68.985%
26806010656

push

github

web-flow
feat(sql): support JOIN ... USING / NATURAL / CROSS (SQLR-5) (#158)

PR #99 shipped INNER/LEFT/RIGHT/FULL OUTER JOIN ... ON; the three
related shapes SQLite supports were still rejected as NotImplemented.
This wires all three through the existing nested-loop join driver.

Parser (src/sql/parser/select.rs):
- JoinClause.on: Expr → constraint: JoinConstraintKind (On/Using/Natural).
- USING (cols) is narrowed to a list of column names; NATURAL is carried
  as-is (it needs schemas the parser doesn't have); CROSS JOIN is
  rewritten to ON true at parse time.

Executor (src/sql/executor.rs):
- resolve_join_constraint lowers USING/NATURAL into the synthesized
  `left.col = right.col [AND …]` predicate, schema-aware: the left
  qualifier is picked per column so join chains resolve correctly, and
  NATURAL auto-discovers the shared column names (none ⇒ cross product,
  matching SQLite).
- SELECT * de-duplicates USING/NATURAL columns per the SQLite
  convention — the joined-on column shows once, taking the left copy.

Tests: 8 new executor tests (USING≡ON rows, SELECT* dedup for USING and
NATURAL, NATURAL multi-column AND, NATURAL-without-common-cols cross
product, CROSS cartesian product, LEFT OUTER USING, USING unknown-column
error), replacing the old "returns NotImplemented" test. Docs updated
(supported-sql, sql-engine, roadmap, README, web docs).

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

142 of 146 new or added lines in 2 files covered. (97.26%)

11484 of 16587 relevant lines covered (69.23%)

1.25 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
68.3
0.95% src/sql/parser/select.rs
1
82.64
1.32% src/sql/executor.rs
Jobs
ID Job ID Ran Files Coverage
1 26806010656.1 02 Jun 2026 07:50AM UTC 62
69.23
GitHub Action Run
Source Files on build 26806010656
  • Tree
  • List 62
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 47c89638 on github
  • Prev Build on main (#26780602675)
  • Next Build on main (#26806416486)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc