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

ConstantPropagateProcFactory uses reference equality on Boolean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • None
    • 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

        1. HIVE-7600.patch
          2 kB
          KangHS

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: