Package org.apache.tajo.datum

Examples of org.apache.tajo.datum.TimestampDatum.asChars()


  @Test
  public void testCastWithNestedFunction() throws IOException {
    int timestamp = (int) (System.currentTimeMillis() / 1000);
    TimestampDatum expected = new TimestampDatum(timestamp);
    testSimpleEval(String.format("select to_timestamp(CAST(split_part('%d.999', '.', 1) as INT8));", timestamp),
        new String[] {expected.asChars()});
  }

  @Test
  public void testCastFromTable() throws IOException {
    Schema schema = new Schema();
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.