Python UDF is not executed in parallel
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with the Python UDF registration and execution path, focusing on how the side_effects setting affects parallel execution. Reproduce the query from the issue with a UDF registered using side_effects=False, then trace the relevant implementation and tests. Done means independent row-wise UDF calls can run in parallel while side-effecting UDF behavior remains correct.
索引モデルが issue の本文から書いたものです。
説明
What happens?
When using Python UDFs the code-path is not executed in parallel. I presume this limitation does not have to be applied when side_effects=False applies.
To Reproduce
SELECT embedding(object, 'ScheduledStopPoint') AS o FROM ScheduledStopPoint;
Since embedding does apply to each individual row, I don't see why this UDF cannot be executed in parallel, there is no interdependency.
OS:
Linux
DuckDB Version:
1.0.1
DuckDB Client:
Python
Hardware:
amd64
Full Name:
Stefan de Konink
Affiliation:
Stichting OpenGeo
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a nightly build
Did you include all relevant data sets for reproducing the issue?
Not applicable - the reproduction does not require a data set
Did you include all code required to reproduce the issue?
- Yes, I have
Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?
- Yes, I have
- 主要言語
- Python
- スター
- 206
- フォーク
- 126
- 平均マージ
- 20時間 18分
- マージ済み PR(30日)
- 36
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
duckdb/duckdb-python のほかの issue
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
duckdb/duckdb-python#752 ·
メンテナーはふだん 1 日以内に返信
-
`read_json` accepts a list of paths at runtime but the type stub only allows a single path.対応中かも @aleks-drozy が 118 日前に担当しました。 オープンneeds triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
duckdb/duckdb-python#576 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Missing ROW_GROUPS_PER_FILE argument in write_parquet function対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンneeds triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
duckdb/duckdb-python#386 ·
メンテナーはふだん 1 日以内に返信
-
import duckdb fails with 'Encountered an error while initializing the extension' when sys.modules has no __main__ (DetectEnvironment imports __main__ unconditionally)対応中かも @chouaibmouidis-py が 2 日前に担当しました。 オープン
難易度 3/5 半日 初心者へのやさしさ 68/100
duckdb/duckdb-python#795 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
duckdb/duckdb-python#789 ·
メンテナーはふだん 1 日以内に返信
duckdb/duckdb-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
GanyuanRan/Aegis#112 ·
-
defect from-review
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
khuisman/mcp-gee-sweet#1669 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
marimo-team/marimo#12153 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
can4hou6joeng4/boss-agent-cli#3290 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信