@Test
  public void testConversionToSignificantNumericTypes() {
    assertEquals("1", MetaStoreServerUtils.getNormalisedPartitionValue("0001", "tinyint"));
    assertEquals("1", MetaStoreServerUtils.getNormalisedPartitionValue("0001", "smallint"));
    assertEquals("10", MetaStoreServerUtils.getNormalisedPartitionValue("00010", "int"));
    assertEquals("-10", MetaStoreServerUtils.getNormalisedPartitionValue("-00010", "int"));

    assertEquals("10", MetaStoreServerUtils.getNormalisedPartitionValue("00010", "bigint"));
    assertEquals("-10", MetaStoreServerUtils.getNormalisedPartitionValue("-00010", "bigint"));

    assertEquals("1.01", MetaStoreServerUtils.getNormalisedPartitionValue("0001.0100", "float"));
    assertEquals("-1.01", MetaStoreServerUtils.getNormalisedPartitionValue("-0001.0100", "float"));
    assertEquals("1.01", MetaStoreServerUtils.getNormalisedPartitionValue("0001.010000", "double"));
    assertEquals("-1.01", MetaStoreServerUtils.getNormalisedPartitionValue("-0001.010000", "double"));
    assertEquals("1.01", MetaStoreServerUtils.getNormalisedPartitionValue("0001.0100", "decimal"));
    assertEquals("-1.01", MetaStoreServerUtils.getNormalisedPartitionValue("-0001.0100", "decimal"));
    assertEquals("__HIVE_DEFAULT_PARTITION__", MetaStoreServerUtils.getNormalisedPartitionValue(
        "__HIVE_DEFAULT_PARTITION__", "decimal"));
  }
Test getPartitionspecsGroupedByStorageDescriptor() multiple partitions:
<ul>
  <li>Partition with null SD</li>
  <li>Two partitions under the table location</li>
  <li>One partition outside of table location</li>
</ul>
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/utils/TestMetaStoreServerUtils.java