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

Fix confusing dead assignment in return statement (JavaHiveVarcharObjectInspector)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.14.0
    • None
    • None

    Description

      There are multiple instances of something like this return o = new HiveVarchar(value, getMaxLength()); in this class. That's not only confusing but also useless as it doesn't do anything.

      I've removed those assignments and cleaned up the class a bit.

      Attachments

        1. HIVE-7921.1.patch
          3 kB
          Lars Francke

        Activity

          People

            larsfrancke Lars Francke
            larsfrancke Lars Francke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: