code: public static List<Partition> getPartitions(IMetaStoreClient client, Table table, Optional<String> filter)
        throws IOException {
      return getPartitions(client, table, filter, Optional.<HivePartitionExtendedFilter>absent());
    }
docs: For backward compatibility when PathFilter is injected as a parameter.
  @param client
  @param table
  @param filter
  @return
  @throws IOException