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

Refactor a few object inspector class to eliminate redundant information

    XMLWordPrintableJSON

    Details

      Description

      AbstractPrimitiveObjectInspector class has two fields:

        protected PrimitiveTypeEntry typeEntry;
        protected BaseTypeParams typeParams;
      

      But PrimitiveTypeEntry already has member BaseTypeParams instance, which is identical to "typeParams" we see here. Thus, there is some redundant information stored at different places. Ideally, we should have a single point of truth.

      This refactoring is required by HIVE-3976 work. This is singled out to make the review easier.

        Attachments

        1. HIVE-5366.patch
          8 kB
          Xuefu Zhang

          Issue Links

            Activity

              People

              • Assignee:
                xuefuz Xuefu Zhang
                Reporter:
                xuefuz Xuefu Zhang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: