Python UDF is not executed in parallel

Aperta
#718 12 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

under review
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
Lingua principale
Python
Stelle
206
Fork
126
Merge medio
20h 18m
PR unite (30g)
36

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di duckdb/duckdb-python

Tutte le issue di duckdb/duckdb-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.