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

ORC struct throws NPE for tables with inner structs having null values

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.13.0, 0.14.0
    • 0.13.0
    • None

    Description

      ORCStruct should return null when object passed to getStructFieldsDataAsList(Object obj) is null.

      public List<Object> getStructFieldsDataAsList(Object object) {
            OrcStruct struct = (OrcStruct) object;
            List<Object> result = new ArrayList<Object>(struct.fields.length);
      

      In the above code struct.fields will throw NPE if struct is NULL.

      Attachments

        1. HIVE-6716.1.patch
          0.9 kB
          Prasanth Jayachandran

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            prasanth_j Prasanth Jayachandran Assign to me
            prasanth_j Prasanth Jayachandran
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment