private boolean isCurrentStatsValidForTheQuery(Partition part, long partWriteId,
      String queryValidWriteIdList, boolean isCompleteStatsWriter)
      throws MetaException {
    return isCurrentStatsValidForTheQuery(part.getParameters(), partWriteId,
        queryValidWriteIdList, isCompleteStatsWriter);
  }
Return true if the current statistics in the Metastore is valid
for the query of the given "txnId" and "queryValidWriteIdList".

Note that a statistics entity is valid iff
the stats is written by the current query or
the conjunction of the following two are true:
~ COLUMN_STATE_ACCURATE(CSA) state is true
~ Isolation-level (snapshot) compliant with the query
@param part                   MPartition of the stats entity
@param queryValidWriteIdList  valid writeId list of the query
@Precondition   "part" should be retrieved from the PARTITIONS table.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java