Python UDF is not executed in parallel

Abierto
#718 12 comentarios 1 reacción 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
38/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
python
Área
backend

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Python
Estrellas
206
Forks
126
Merge medio
20 h 18 min
PR fusionados (30 d)
36

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de duckdb/duckdb-python

Todos los issues de duckdb/duckdb-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.