Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Could DuckDBClient load (CSV) files by URL ?

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript
領域
data, database

調査の方向性

Start at the DuckDBClient.of entry point and compare the existing URL and FileAttachment forms described in the issue. Determine how a URL plus fileType should be recognized for CSV and other formats, then verify that the proposed configuration loads the remote data successfully.

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

説明

I'd like an equivalent of
gentoo = d3.csv("https://portal.edirepository.org/nis/dataviewer?packageid=knb-lter-pal.220.7&entityid=e03b43c924f226486f2f0ab6709d2381", d3.autoType)

with DuckDBClient.

both

DuckDBClient.of({
    gentoo: "https://portal.edirepository.org/nis/dataviewer?packageid=knb-lter-pal.220.7&entityid=e03b43c924f226486f2f0ab6709d2381"
})

and

DuckDBClient.of({
    gentoo: {
      file: "https://portal.edirepository.org/nis/dataviewer?packageid=knb-lter-pal.220.7&entityid=e03b43c924f226486f2f0ab6709d2381"
    }
})

won't work.

But this, simulating a FileAttachment structure, will work:

db =  {
  const gentoo = {
    url : () => "https://portal.edirepository.org/nis/dataviewer?packageid=knb-lter-pal.220.7&entityid=e03b43c924f226486f2f0ab6709d2381",
    mimeType: 'text/csv',
    name: 'gentoo'
  }
  
  return DuckDBClient.of({
    gentoo: {file: gentoo}
  })
}

although it's rather complicated to memorize.

I would dream of something simple and intuitive like:

DuckDBClient.of({
    gentoo: {
      url: "https://portal.edirepository.org/nis/dataviewer?packageid=knb-lter-pal.220.7&entityid=e03b43c924f226486f2f0ab6709d2381",
      fileType: "csv"
    }
})

with fileType that could also be 'json' for instance (or 'parquet', 'arrow'...).

主要言語
JavaScript
スター
1k
フォーク
87
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

observablehq/stdlib のほかの issue

observablehq/stdlib の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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