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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.13.0, 0.14.0
    • Fix Version/s: 0.13.0
    • Component/s: None
    • Labels:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: