Hive
  1. Hive
  2. HIVE-7600

ConstantPropagateProcFactory uses reference equality on Boolean

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: None
    • Labels:
      None

      Description

      shortcutFunction() has the following code:

                if (c.getValue() == Boolean.FALSE) {
      

      Boolean.FALSE.equals() should be used.

      There're a few other occurrences of using reference equality on Boolean in this class.

        Activity

          People

          • Assignee:
            KangHS
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development