protected StorageDescriptor buildSd() throws MetaException {
    StorageDescriptor sd = new StorageDescriptor(getCols(), location, inputFormat, outputFormat,
        compressed, numBuckets, buildSerde(), bucketCols, sortCols, storageDescriptorParams);
    sd.setStoredAsSubDirectories(storedAsSubDirectories);
    if (skewedColNames != null) {
      SkewedInfo skewed = new SkewedInfo(skewedColNames, skewedColValues,
          skewedColValueLocationMaps);
      sd.setSkewedInfo(skewed);
    }
    return sd;
  }
Builds a {@link StorageDescriptor}.  Only requires that columns be set.  It picks reasonable
defaults for everything else.  This is intended for use just by objects that have a StorageDescriptor,
not direct use.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/client/builder/StorageDescriptorBuilder.java