Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
In Drill, we have two ways to concatenate Strings:
1. Concat Function: concat(c1, c2, c3, ...)
2. Concat Operator: c1 || c2 || c3 || ...
They are doing same thing except for dealing with NULL:
1. For concat function, NULL is treated as empty string
2. For concat operator: if any input is NULL, output NULL (no matter what other columns are)
These are subtle difference and would be better to be documented.
--------------------------------------------------------------------
Some discussion can be found from DRILL-2328
Attachments
Issue Links
- duplicates
-
DRILL-1877 Throw unsupported error message for || operator early in the parsing stage
- Closed