private static DataExpirationConfig.BaseOnRule parseDataExpirationBaseOnRule(String since) {
    Preconditions.checkArgument(
        null != since, TableProperties.DATA_EXPIRATION_BASE_ON_RULE + " is invalid: null");
    try {
      return DataExpirationConfig.BaseOnRule.valueOf(since.toUpperCase(Locale.ENGLISH));
    } catch (IllegalArgumentException e) {
      throw new IllegalArgumentException(
          String.format("Unable to expire data since: %s", since), e);
    }
  }
Parse table data expiration config from table properties

@param properties table properties
@return table expiration config
amoro-ams/src/main/java/org/apache/amoro/server/table/TableConfigurations.java