Examples of quoteTimestampLiteral()


Examples of mondrian.spi.Dialect.quoteTimestampLiteral()

    public void testHiveTimestampQuoteLiteral() throws SQLException {
      /*MONDRIAN-2208*/
      Dialect hiveDbDialect =
          TestContext.getFakeDialect(Dialect.DatabaseProduct.HIVE);
      StringBuilder buf = new StringBuilder();
      hiveDbDialect.quoteTimestampLiteral( buf, "2014-10-29 10:27:55.12");
      assertEquals(
          "TIMESTAMP literal for Hive requires special syntax (cast)",
          "cast( '2014-10-29 10:27:55.12' as timestamp )", buf.toString());
    }

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.