-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow execution of zero parameter functions #305
Comments
Some alternatives:
|
@jorgecarleitao thanks for the advice. did you mean these two bullets combined as a solution? |
They are independent solutions: In the former, we have a new In the latter, the planner would query the number of arguments of the expression, and if it is zero, would pass a In my opinion this issue should be written in a generic form, so that it focus on the problem and not on the solution. E.g. instead of "Allow ScalarFunctionImplementation to...", use "Allow execution of zero-argument functions". It is not obvious to me that changing the signature of |
Let me rephrase |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
We shall allow the execution of zero parameter functions.
Describe the solution you'd like
A clear and concise description of what you want to happen.
One solution is to conventionally pass a null array with the correct expected batch size to
ScalarFunctionImplementation
so that functions with zero param can take that as input.where the first param
usize
is the batch sizeDescribe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: