private static void checkProjection(FieldSchema fs, String expectedName, byte expectedPigType) {
    assertEquals(fs.alias, expectedName);
    assertEquals("Expected " + DataType.findTypeName(expectedPigType) + "; got " +
      DataType.findTypeName(fs.type), expectedPigType, fs.type);
  }
Execute Hive CLI statement
@param cmd arbitrary statement to execute
hcatalog/hcatalog-pig-adapter/src/test/java/org/apache/hive/hcatalog/pig/AbstractHCatLoaderTest.java