public String getLocation() {
    if (tPartition.getSd() == null) {
      return null;
    } else {
      return tPartition.getSd().getLocation();
    }
  }
Should be only used by serialization.
ql/src/java/org/apache/hadoop/hive/ql/metadata/Partition.java