Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
We discuss and finalize how NULL value is handled in specified cases here. this is the first proposal:
- NULL compare. In ascending order, NULL is smaller than any other value, and NULL == NULL return false.
- NULL exists in GroupBy Key, all NULL values are grouped as a single group.
- NULL exists in Aggregate columns, ignore NULL in aggregation function.
- NULL exists in both side Join key, refer to #i, NULL == NULL return false, no output for NULL Join key.
- NULL in Scalar expression, expression within NULL(eg. 1 + NULL) return NULL.
- NULL in Boolean expression, add an extra result: UNKNOWN, more semantic for Boolean expression in reference #1.