Closed mxwli closed 1 week ago
What is going to happen if a python function has optional arguments or position arguments? How are we going to use them in kuzu?
@acquamarin If we allow Python UDF to have optional or position arguments, we cannot match the right function based on user's parameters with our function framework. So we'll require users to provide all parameters for Python UDF by now.
I haven't read much into how Python handles optional arguments, @mxwli could take a look at this case when he gets back to work.
What is going to happen if a python function has optional arguments or position arguments? How are we going to use them in kuzu?
@acquamarin If we allow Python UDF to have optional or position arguments, we cannot match the right function based on user's parameters with our function framework. So we'll require users to provide all parameters for Python UDF by now.
I haven't read much into how Python handles optional arguments, @mxwli could take a look at this case when he gets back to work.
Optional arguments and keyword arguments don't have a very good equivalent in Kuzu, and I'm not sure if we even have a mechanism to handle binding for all possible cases, so it's not handled at the moment. No error is thrown, it's just that we ignore the "optional" property and consider all parameters "mandatory"
Here's how it's to be used, as well as an explanation of some of its features
Nested types haven't been implemented yet, but it's been decided to be done.