Package com.facebook.presto.spi.type

Examples of com.facebook.presto.spi.type.SqlTimestampWithTimeZone


    @Test
    public void testCastToTimestampWithTimeZone()
            throws Exception
    {
        assertFunction("cast(DATE '2001-1-22' as timestamp with time zone)",
                new SqlTimestampWithTimeZone(new DateTime(2001, 1, 22, 0, 0, 0, 0, DATE_TIME_ZONE).getMillis(), TIME_ZONE_KEY));
    }
View Full Code Here


    @Test
    public void testFunctionWithSessionCall()
            throws Exception
    {
        assertExecute("now()", new SqlTimestampWithTimeZone(SESSION.getStartTime(), SESSION.getTimeZoneKey()));
        assertExecute("current_timestamp", new SqlTimestampWithTimeZone(SESSION.getStartTime(), SESSION.getTimeZoneKey()));

        Futures.allAsList(futures).get();
    }
View Full Code Here

    @Test
    public void testFunctionWithSessionCall()
            throws Exception
    {
        assertExecute("now()", new SqlTimestampWithTimeZone(SESSION.getStartTime(), SESSION.getTimeZoneKey()));
        assertExecute("current_timestamp", new SqlTimestampWithTimeZone(SESSION.getStartTime(), SESSION.getTimeZoneKey()));

        Futures.allAsList(futures).get();
    }
View Full Code Here

TOP

Related Classes of com.facebook.presto.spi.type.SqlTimestampWithTimeZone

Copyright © 2018 www.massapicom. 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.