jayzhan211 opened a new issue, #13371:
URL: https://github.com/apache/datafusion/issues/13371
### Is your feature request related to a problem or challenge?
`get_possible_types` returns `Vec<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.
```rust
pub struct Documentation {
// arg name, arg type, description
pub arguments: Option<Vec<(String, String)>>,
pub return_type: String,
}
```
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)` and `int` 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 ...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]