@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();