@Override
  public GetPartitionsResponse getPartitionsWithSpecs(GetPartitionsRequest request)
      throws TException {
    if (processorCapabilities != null)
      request.setProcessorCapabilities(new ArrayList<String>(Arrays.asList(processorCapabilities)));
    if (processorIdentifier != null)
      request.setProcessorIdentifier(processorIdentifier);
    if (request.isSetProjectionSpec()) {
      if (!request.getProjectionSpec().isSetExcludeParamKeyPattern()) {
        request.getProjectionSpec().setExcludeParamKeyPattern(MetastoreConf.getAsString(conf,
            MetastoreConf.ConfVars.METASTORE_PARTITIONS_PARAMETERS_EXCLUDE_PATTERN));
      }
      if (!request.getProjectionSpec().isSetIncludeParamKeyPattern()) {
        request.getProjectionSpec().setIncludeParamKeyPattern(MetastoreConf.getAsString(conf,
            MetastoreConf.ConfVars.METASTORE_PARTITIONS_PARAMETERS_INCLUDE_PATTERN));
      }
    }
    return client.get_partitions_with_specs(request);
  }
This method is called to get the ValidWriteIdList in order to send the same in HMS get_* APIs,
if the validWriteIdList is not explicitly passed (as a method argument) to the HMS APIs.
This method returns the ValidWriteIdList based on the VALID_TABLES_WRITEIDS_KEY key.
Since, VALID_TABLES_WRITEIDS_KEY is set during the lock acquisition phase after query compilation
( DriverTxnHandler.acquireLocks -&gt; recordValidWriteIds -&gt; setValidWriteIds ),
this only covers a subset of cases, where we invoke get_* APIs after query compilation,
if the validWriteIdList is not explicitly passed (as a method argument) to the HMS APIs.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java