code: public static void populatePartitionInfo(HiveProcessingEntity conversionEntity, Map<String, String> partitionsDDLInfo,
        Map<String, String> partitionsDMLInfo) {
  
      String partitionsInfoString = null;
      String partitionsTypeString = null;
  
      if (conversionEntity.getPartition().isPresent()) {
        partitionsInfoString = conversionEntity.getPartition().get().getName();
        partitionsTypeString = conversionEntity.getPartition().get().getSchema().getProperty("partition_columns.types");
      }
  
      if (StringUtils.isNotBlank(partitionsInfoString) || StringUtils.isNotBlank(partitionsTypeString)) {
        if (StringUtils.isBlank(partitionsInfoString) || StringUtils.isBlank(partitionsTypeString)) {
          throw new IllegalArgumentException("Both partitions info and partitions must be present, if one is specified");
        }
        List<String> pInfo = Splitter.on(HIVE_PARTITIONS_INFO).omitEmptyStrings().trimResults().splitToList(partitionsInfoString);
        List<String> pType = Splitter.on(HIVE_PARTITIONS_TYPE).omitEmptyStrings().trimResults().splitToList(partitionsTypeString);
        log.debug("PartitionsInfoString: " + partitionsInfoString);
        log.debug("PartitionsTypeString: " + partitionsTypeString);
  
        if (pInfo.size() != pType.size()) {
          throw new IllegalArgumentException("partitions info and partitions type list should of same size");
        }
        for (int i = 0; i < pInfo.size(); i++) {
          List<String> partitionInfoParts = Splitter.on("=").omitEmptyStrings().trimResults().splitToList(pInfo.get(i));
          String partitionType = pType.get(i);
          if (partitionInfoParts.size() != 2) {
            throw new IllegalArgumentException(
                String.format("Partition details should be of the format partitionName=partitionValue. Recieved: %s", pInfo.get(i)));
          }
          partitionsDDLInfo.put(partitionInfoParts.get(0), partitionType);
          partitionsDMLInfo.put(partitionInfoParts.get(0), partitionInfoParts.get(1));
        }
      }
    }
docs: It fills partitionsDDLInfo and partitionsDMLInfo with the partition information
  @param conversionEntity conversion entity to
  @param partitionsDDLInfo partition type information, to be filled by this method
  @param partitionsDMLInfo partition key-value pair, to be filled by this method