Follow-up to #341: next readers set from DB-Engines ranking

Open
#570 7 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

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
rust, sql
Domain
backend, databases

Research direction

Start with detect_dialect and dialect_for_scheme, then inspect the existing dialect modules, golden SQL tests, ODBC fallback, and Tier 2/3 live matrix configuration. The suggested first milestone is IBM Db2, with its FETCH FIRST limit syntax and ANSI double-quoted identifiers. Done means the dialect and aliases are supported, golden tests pass, and a live smoke-test row exists where a container is available.

Written by the indexing model from the issue text.

Description

SedonaDB is pretty high priority as it will provide a pure rust, in-memory backend with spatial support built in. An ADBC driver for it is in the works.

Cross-referencing the current 17 dialects against the DB-Engines ranking (438 systems, Sept 2026) shows the remaining gaps fall into two cost classes. All relational systems in the top 10 are already covered (Oracle, MySQL, MSSQL, PostgreSQL, Snowflake, Databricks, SQLite).

Level 1 — Wire-protocol aliases (no new dialect module)

These systems speak an existing wire protocol, so support is a scheme mapping in detect_dialect/dialect_for_scheme plus golden tests — no new dialect module, no new driver machinery. Several outrank systems we already support.

Rank System Score Maps to Notes
15 Microsoft Azure SQL Database 70.8 mssql Ranked above BigQuery (#19) and ClickHouse (#26), both supported
59 Presto 6.2 trino Same engine family
32 / 36 Microsoft Fabric / Azure Synapse 19.4 / 16.2 mssql family T-SQL warehouse endpoints; verify dialect deltas
28 Apache Spark SQL 23.3 databricks-ish Spark Thrift Server; check overlap with databricks dialect
44 / 63 / 64 / 72 / 116 Aurora, TimescaleDB, Greenplum, CockroachDB, YugabyteDB 9.6 / 5.9 / 5.6 / 4.2 / 2.2 postgres Thin subclasses may be needed: CockroachDB temp-table limits, Greenplum's older PG base
82 / 89 / 146 TiDB, SingleStore, StarRocks 3.3 / 3.1 / 1.6 mysql Also PlanetScale, Vitess, Apache Doris
85 QuestDB 3.1 postgres (pgwire)

Suggested acceptance criteria: scheme aliases resolve to the right dialect, golden SQL tests pass for each alias, and each gets at least a smoke-test row in the Tier 2/3 live matrix where a container exists.

Level 2 — New dialect modules

Ranked by popularity. None have ADBC drivers, but all ship vendor ODBC drivers, so each rides the existing ODBC fallback: dialect module + golden tests + live config, no new driver infrastructure.

Rank System Score Dialect notes
9 IBM Db2 110.6 Largest relational gap by ~40 points; FETCH FIRST n ROWS ONLY limit syntax, ANSI double-quote idents
16 Apache Hive 70.1 HiveQL; backtick quoting; large legacy installed base
22 SAP HANA 33.2 Enterprise analytics
23 Teradata 31.2 Distinct quirks (SAMPLE, TOP variant)
25 SAP Adaptive Server (Sybase) 26.1 T-SQL ancestor; may partially reuse mssql dialect
41 Apache Impala 11.1 Hive-family
51 Vertica 7.7 Analytic workloads, mostly ANSI-ish
39 / 60 Informix / Netezza 12.9 / 6.0 Legacy enterprise, declining — lowest priority

Db2 is the obvious first pick. A reasonable sequencing: Db2 alone first (validates the ODBC-fallback dialect workflow end-to-end), then the Hive/Impala pair (shared dialect groundwork), then HANA/Teradata/Vertica as demand warrants.

Dominant language
Rust
Stars
575
Forks
33
Avg merge
7d 18h
Merged PRs (30d)
11

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 posit-dev/ggsql

All issues in posit-dev/ggsql

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.