ADBC support?

オープン
#5,814 コメント 0 件 リアクション 5 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
静か
技術スタック
python
領域
databases

調査の方向性

Start by reading the existing engine adapters and comparing their database connection interfaces and dependencies. Then assess how an ADBC-based connection would fit the adapters and fetchdf path; the issue does not identify specific files or tests. Done would mean defining a concrete ADBC support scope, including which drivers and behaviors are supported.

索引モデルが issue の本文から書いたものです。

説明

Improvement

Hi! Thanks for creating this project!

I am wondering, have you considered supporting ADBC as a connecting interface towards the different databases? ADBC is relatively new, but read for production imo. I think introducing ADBC would:

  1. simplify the codebase, and ease the maintenance of the several engine adapters, as they share the similar dbapi interface and have less non-shared dependencies.
  2. improve the preformance of fetchdf when moving large amounts of data.
  3. allow a BYOD (bring your own driver) approach.

Some pointers:
https://arrow.apache.org/adbc/current/python/recipe/postgresql.html#using-pandas-and-adbc
https://docs.adbc-drivers.org/drivers/bigquery/index.html

The difference between for example BigQuery, Databricks and DuckDB Quack and Trino then becomes:

from adbc_driver_manager import dbapi

dbapi.connect(
    driver="bigquery" # driver="databricks" or driver="quack" or driver="trino"
    db_kwargs={
       # these can be passable via the config and vary per database and user requirements
       # "uri": "quack://localhost:9494/?token=quack-secret"
    },
)

I think it would simplify managing models in multiple databases/datalakes, and enhances/leverage the existing power of SQLGlot even more.

I'd have to dive deeper into the code to figure out the overall impact on the codebase though.

主要言語
Python
スター
3.3k
フォーク
471
平均マージ
6日 7時間
マージ済み PR(30日)
35

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

SQLMesh/sqlmesh のほかの issue

SQLMesh/sqlmesh の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。