public static String queryToString(Configuration conf, String query, boolean includeHeader) throws Exception {
    return queryToString(conf, query, includeHeader, "   ");
  }
Utility method used to run COUNT queries like "select count(*) from ..." against metastore tables
@param countQuery countQuery text
@return count countQuery result
@throws Exception
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/utils/TestTxnDbUtil.java