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

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

    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

            People

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

              Dates

                Created:
                Updated:
                Resolved: