o
    ?D©i¢  ã                   @   s   d d„ Z dS )c                 C   sl   ddl m} ddl}| | j| j| j| j| j¡}ddl	}i }|| ƒ}|j
 |j
D ]}|jj||< q(||_|S )z»
    Decorate a function with annotated function parameters, so DuckDB can infer that the function should be provided with pyarrow arrays and should expect pyarrow array(s) as output
    é    )Ú	signatureN)Úinspectr   ÚtypesÚFunctionTypeÚ__code__Ú__globals__Ú__name__Ú__defaults__Ú__closure__ÚpyarrowÚ
parametersÚlibÚChunkedArrayÚ__annotations__)Úfuncr   r   Únew_funcÚpaÚnew_annotationsÚsigÚparam© r   úC/var/www/Datamplify/venv/lib/python3.10/site-packages/duckdb/udf.pyÚ
vectorized   s   
r   N)r   r   r   r   r   Ú<module>   s    