Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-3139 NULL values handling in Table API
  3. FLINK-3141

Design of NULL values handling in operation

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • Table SQL / API
    • None

    Description

      We discuss and finalize how NULL value is handled in specified cases here. this is the first proposal:

      1. NULL compare. In ascending order, NULL is smaller than any other value, and NULL == NULL return false.
      2. NULL exists in GroupBy Key, all NULL values are grouped as a single group.
      3. NULL exists in Aggregate columns, ignore NULL in aggregation function.
      4. NULL exists in both side Join key, refer to #i, NULL == NULL return false, no output for NULL Join key.
      5. NULL in Scalar expression, expression within NULL(eg. 1 + NULL) return NULL.
      6. NULL in Boolean expression, add an extra result: UNKNOWN, more semantic for Boolean expression in reference #1.

      Attachments

        Activity

          People

            Unassigned Unassigned
            chengxiang li Chengxiang Li
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: