@Override
  public Object getField(Object data) {
    if (data == null) {
      return null;
    }
    return ((LazyUnion) data).getField();
  }
LazyUnionObjectInspector works on union data that is stored in LazyUnion.

Always use the {@link LazyObjectInspectorFactory} to create new
ObjectInspector objects, instead of directly creating an instance of this
class.
serde/src/java/org/apache/hadoop/hive/serde2/lazy/objectinspector/LazyUnionObjectInspector.java