jayzhan211 opened a new issue, #10270:
URL: https://github.com/apache/datafusion/issues/10270
### Is your feature request related to a problem or challenge?
NVL and Nullif has signature uniform, which iterates valid types and creates
many possible types for them
```rust
TypeSignature::Uniform(number, valid_types) => valid_types
.iter()
.map(|valid_type| (0..*number).map(|_|
valid_type.clone()).collect())
.collect(),
```
I think they can have better signatures that take repeated first type as the
valid types.
```rust
TypeSignature::Equal(num) => {
vec![vec![current_types[0]; num]]
}
```
I think there are two benefits
1. only one valid type vector and it is good enough
2. no need to maintain supported types
### Describe the solution you'd like
_No response_
### Describe alternatives you've considered
_No response_
### Additional context
_No response_
--
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]