Open jayzhan211 opened 1 week ago
take
@jonathanc-n You can take a look on this if you are interested, there are tons of functions require the change, not able to resolved in single PR. Signature like Exact
and Uniform
are the targeted one to replace with
Thanks, i'll look into it!
Is your feature request related to a problem or challenge?
Some functions signature is quite verbose, like
Describe the solution you'd like
13240 starts an attempt to bring logical type to function signature
There are more functions to be cleanup. The example above can be replaced with TypeSiganture::String, TypeSiganture::Numeric, TypeSiganture::Coercible.
We might also need time related signature for time function.
Improve test coverage with these functions especially with different kinds of types would be great 👍
Describe alternatives you've considered
No response
The role of TypeSignature
TypeSignature used in function which is responsible for handling
The functions behaviour follows Postgres, DuckDB or other well-designed database. Can check whether the result and coercion is consistent with them.
If the result is consistent in both Postgres, DuckDB, we should follow them. Otherwise, we follow either of them.
For the casting rule, I think we can follow DuckDB's casting rule described here
TypeSignature should handle implicit casting
Good first issue list (non-completed)