Skip to content

Support: IS DISTINCT FROM operator, IS NOT DISTINCT FROM operator, and COALESCE transform #9218

@nizarhejazi

Description

@nizarhejazi
  • Supports COALESCE transform.
  • Supports IS DISTINCT FROM operator.
  • Supports IS NOT DISTINCT FROM operator.

Note: IS DISTINCT FROM is a transform function that can be rewritten as the following:

a IS DISTINCT FROM b 
-- equivalent to --
((a <> b OR a IS NULL OR b IS NULL) AND NOT (a IS NULL AND b IS NULL))

Nevertheless, it is a good idea to support these operators for two reasons:

  1. To compute the end result more efficiently.
  2. To simplify SQL query.
  3. Presto supports it too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    beginner-taskSmall task for new contributors to ramp upfeature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions