Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Passing argument while calling a UDF #1324

Open
1 of 2 tasks
americast opened this issue Oct 27, 2023 · 1 comment
Open
1 of 2 tasks

Passing argument while calling a UDF #1324

americast opened this issue Oct 27, 2023 · 1 comment
Assignees

Comments

@americast
Copy link
Member

americast commented Oct 27, 2023

Search before asking

  • I have searched the EvaDB issues and found no similar feature requests.

Description

Currently, we are unable to send named arguments while calling a function, unlike in python:

SELECT HomeSaleForecast(SUGGESTION=TRUE);

doesn't work. It leads to this error:

  File "$HOME/evadb/evadb/binder/statement_binder_context.py", line 161, in raise_error
    raise BinderError(err_msg)
evadb.binder.binder_utils.BinderError: Cannot find column suggestion. There are no feasible columns.

However,

SELECT HomeSaleForecast(TRUE);

works

Use case

Like in python, we might want users to be able to access certain features while specifically calling a function.

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@americast americast changed the title Passing argument Passing argument while calling a UDF Oct 27, 2023
@jiashenC jiashenC assigned kslohith and unassigned kslohith Nov 2, 2023
@rohithmulumudy
Copy link
Contributor

@xzdandy, I am picking this up

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Status: In Progress
Development

No branches or pull requests

4 participants