WinkerDu commented on PR #2142:
URL:
https://github.com/apache/arrow-datafusion/pull/2142#issuecomment-1087274996
> @jackwener thank you for your comment. I'm not sure what PG behaves like
is reasonable, PG build-in expression `concat` can take `NULL` like
>
> ```
> select concat('aa', NULL, 'b');
> concat
> --------
> aab
> (1 row)
> ```
>
> I prefer unify the outputs of `||` and `concat`, what other contributors
think of?
@jackwener @renato2099
I've check the behaviors of PG of SparkSQL, they all come out results with
`NULL`
- Spark 3.2
```
spark-sql> select 'a' || NULL || 'b';
NULL
```
- GP
```
# select 'a' || NULL || 'b';
?column?
----------
(1 row)
```
Seems here is a convention, I'll comply with it in later commit, thank you
both.
--
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]