-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Simplify the returned type in TypeSignature::get_possible_types
#13371
Comments
I prefer to provide a real type name here instead of a semantic name (e.g.
Because we have the logic type now, maybe showing the logic type name would be a better choice. WDYT? |
Odd that duckdb seems to be repeating the list there but I'd love to have that list for all functions in DF |
I prefer Logical Type |
I love the idea of this, I'm not sure logical type will work for all functions, especially those that are user defined. It may be worth if to go through all the functions and build up a spreadsheet of what input/output types they have. I've been wanting to have a more detailed list of functions and their details anyways so if I get a chance I may do that |
For user defined signature, they should provide their argument and return type, so we can just get the info from it. |
Is your feature request related to a problem or challenge?
get_possible_types
returnsVec<Vec<DataType>>
and convert to string for information schema.Can we instead return the type define in each function as part of the documentation and return that instead?
We add return type and argument type in
Documentation
struct.For example, if one function signature and return type is
func(string, int) -> int
.Instead of returning bunch of possible DataType combination like (Utf8, Int64), (Utf8View, Int64), (Utf8, Int32) ....
We can return
(string, int)
andint
for simplicity@goldmedal @Omega359 What do you think?
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
In postgres, they have data type for argument and return type too. And in more general term like numeric, text, int ...
The overall idea is I want the simple argument type and return type defined in documentation and take this information for information schema.
The text was updated successfully, but these errors were encountered: