fix: Added nullable return from date_add(#19151)
Which issue does this PR close?
- Closes #19151.
Rationale for this change
- This will make return type of data_add udf nullable.
What changes are included in this PR?
Are these changes tested?
- Yes
Are there any user-facing changes?
- No
https://github.com/apache/datafusion/pull/19225 is very similar to this PR. Please check it for additional inspiration.
#19225 is very similar to this PR. Please check it for additional inspiration. Added scalar case. Thanks
@martin-g If it doesn't need any further improvement, please approve. Thanks
@manishkr Please fix the PR title: s/data_add/date_add/
@manishkr Please fix the PR title: s/data_add/date_add/
Done, Thanks.
@comphead Could you help in merging this. Thanks.