@Test
  public void testCASTHplSqlFunction2() throws Throwable {
    String scriptText = "SELECT CAST(TIMESTAMP '2015-03-12 10:58:34.111' AS CHAR(10));";
    testScriptFile(scriptText, args(), "2015-03-12");
  }
Start up a local Hive Server 2 for these tests
itests/hive-unit/src/test/java/org/apache/hive/beeline/TestHplSqlViaBeeLine.java