public static String getPartitionNameFromPartitionType(MetadataPartitionType partitionType, HoodieTableMetaClient metaClient, String indexName) {
    if (MetadataPartitionType.FUNCTIONAL_INDEX.equals(partitionType)) {
      checkArgument(metaClient.getIndexMetadata().isPresent(), "Index definition is not present");
      return metaClient.getIndexMetadata().get().getIndexDefinitions().get(indexName).getIndexName();
    }
    return partitionType.getPartitionPath();
  }
@Test
  public void testGetNonFunctionalIndexPath() {
    MetadataPartitionType partitionType = MetadataPartitionType.COLUMN_STATS;
    HoodieTableMetaClient metaClient = mock(HoodieTableMetaClient.class);

    String result = HoodieIndexUtils.getPartitionNameFromPartitionType(partitionType, metaClient, null);
    assertEquals(partitionType.getPartitionPath(), result);
  }