Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16768

NOT operator returns NULL from result of <=>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.1.1
    • None
    • None
    • None

    Description

      SELECT "foo" <=> null;
      returns false as expected.

      SELECT NOT("foo" <=> null);
      returns NULL, but should return true.

      Workaround is
      SELECT NOT(COALESCE("foo" <=> null));

      Attachments

        Issue Links

          Activity

            People

              ferhui Hui Fei
              sterligovak Alexander Sterligov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: