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

Null checks missing in ORC list and map object inpsectors

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 0.11.0, 0.12.0, 0.13.0, 0.13.1
    • Fix Version/s: None
    • Component/s: File Formats
    • Labels:

      Description

      The OrcListObjectInspector and OrcMapObjectInspector classes do not check for null data and instead throw an exception. To comply with the JavaDocs for ListObjectInspector and MapObjectInspector, these classes should be updated to check for null data.

      The following checks should be added for OrcListObjectInspector:

      • getListElement(Object, int) should return null for null list, out-of-the-range index
      • getListLength(Object) should return -1 for data = null
      • getList(Object) should return null for data = null

      The following checks should be added for OrcMapObjectInspector:

      • getMap(Object) should return null for data = null
      • getMapSize(Object) return -1 for NULL map

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                freastro Gregory Hart
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: