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

ConstantPropagateProcFactory uses reference equality on Boolean

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

          Activity

            People

            • Assignee:
              HS KangHS
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: