Hive
  1. Hive
  2. HIVE-1794

GenericUDFOr and GenericUDFAnd cannot receive boolean typed object

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.7.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      If a UDF returns Java's native boolean and passed into a logic AND or OR. The execution will break.

        Activity

        Hide
        Siying Dong added a comment -

        1. Fix the issue that Or and And cannot accept java's boolean
        2. add unit tests covering and, or and not accepting java's boolean
        3. add unit tests to cover = and <> to accept Java's string.

        Show
        Siying Dong added a comment - 1. Fix the issue that Or and And cannot accept java's boolean 2. add unit tests covering and, or and not accepting java's boolean 3. add unit tests to cover = and <> to accept Java's string.
        Hide
        Namit Jain added a comment -

        +1

        running tests

        Show
        Namit Jain added a comment - +1 running tests
        Hide
        Namit Jain added a comment -

        Committed. Thanks Siying

        Show
        Namit Jain added a comment - Committed. Thanks Siying

          People

          • Assignee:
            Siying Dong
            Reporter:
            Siying Dong
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development