private void restoreLocalInfoFromTableInfo() {
    assert tableInfo != null : "TableInfo can't be null at this point.";
    if (partitionSchema == null) {
      partitionSchema = tableInfo.getDataColumns();
    }

    if (storageHandlerClassName == null) {
      storageHandlerClassName = tableInfo.getStorerInfo().getStorageHandlerClass();
    }

    if (inputFormatClassName == null) {
      inputFormatClassName = tableInfo.getStorerInfo().getIfClass();
    }

    if (outputFormatClassName == null) {
      outputFormatClassName = tableInfo.getStorerInfo().getOfClass();
    }

    if (serdeClassName == null) {
      serdeClassName = tableInfo.getStorerInfo().getSerdeClass();
    }
  }
Undoes the effects of compression( dedupWithTableInfo() ) during serialization,
and restores PartInfo fields to return original data.
Can be called idempotently, repeatably.
hcatalog/core/src/main/java/org/apache/hive/hcatalog/mapreduce/PartInfo.java