-
Notifications
You must be signed in to change notification settings - Fork 328
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
The script must have the same name as the function #2532
Comments
It's not a bug too. If you want to call script by HTTP API, the name is the script name you pass when saving the scripts. |
Some more subtle manner:
If we don't support multiple |
|
cc @discord9 |
What type of bug is this?
Unexpected error
What subsystems are affected?
Datanode
What happened?
Mentioned in https://docs.greptime.com/user-guide/python-scripts/data-types
Notes: the function name is
query_numbers
// file query_numbers.py
curl --data-binary "@query_numbers.py" -XPOST "http://localhost:4000/v1/scripts?name=query_number&db=public"
Execute sql
select query_number();
Output:
However, it works via http.
If you change
?name=query_number
to?name=query_numbers
, everything works.What operating system did you use?
Ubuntu 23.04
Relevant log output and stack trace
No response
How can we reproduce the bug?
Mentioned in https://docs.greptime.com/user-guide/python-scripts/data-types
Notes: the function name is
query_numbers
// file query_numbers.py
curl --data-binary "@query_numbers.py" -XPOST "http://localhost:4000/v1/scripts?name=query_number&db=public"
Execute sql
select query_number();
The text was updated successfully, but these errors were encountered: