@Test
  public void testSelectEntityDirect() throws ParseException {
    Driver driver = createDriver();
    int ret = driver.compile("select * from t1", true);
    assertEquals("Checking command success", 0, ret);
    assertEquals(1, CheckInputReadEntityDirect.readEntities.size());
    assertTrue("isDirect", CheckInputReadEntityDirect.readEntities.iterator().next().isDirect());
  }
No views in the query so it should be a direct entity

@throws ParseException
ql/src/test/org/apache/hadoop/hive/ql/plan/TestReadEntityDirect.java