
    }Oi                     f    d dl Z de j        de j        f         de j        de j        f         fdZdS )    Nfunc.returnc                     ddl }ddlm} |                    | j        | j        | j        | j        | j                  }ddl	}i } ||           }|j
        D ]}|j        j        ||<   ||_        |S )zDecorate a function with annotated function parameters.

    This allows DuckDB to infer that the function should be provided with pyarrow arrays and should expect
    pyarrow array(s) as output.
    r   N)	signature)typesinspectr   FunctionType__code____globals____name____defaults____closure__pyarrow
parameterslibChunkedArray__annotations__)r   r   r   new_funcpanew_annotationssigparams           e/var/www/html/web/mlink/mlink_AI_Server/mlink-backend/venv/lib/python3.11/site-packages/duckdb/udf.py
vectorizedr      s     LLL!!!!!!!!$-1A4=RVRceieuvvHO
)D//C 5 5!#!4.HO    )typingCallableAnyr    r   r   <module>r       sT    V_S&*_5 &/#vz/:Z      r   