[
https://issues.apache.org/jira/browse/FLINK-4385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15420682#comment-15420682
]
ASF GitHub Bot commented on FLINK-4385:
---------------------------------------
Github user twalthr commented on the issue:
https://github.com/apache/flink/pull/2362
@wuchong Thanks for the fix! Will merge...
> Union on Timestamp fields does not work
> ---------------------------------------
>
> Key: FLINK-4385
> URL: https://issues.apache.org/jira/browse/FLINK-4385
> Project: Flink
> Issue Type: Bug
> Components: Table API & SQL
> Reporter: Timo Walther
> Assignee: Jark Wu
>
> The following does not work:
> {code}
> public static class SDF {
> public Timestamp t = Timestamp.valueOf("1990-10-10 12:10:10");
> }
> ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();
> DataSet<SDF> dataSet1 = env.fromElements(new SDF());
> DataSet<SDF> dataSet2 = env.fromElements(new SDF());
> BatchTableEnvironment tableEnv = TableEnvironment.getTableEnvironment(env);
> tableEnv.registerDataSet( "table0", dataSet1 );
> tableEnv.registerDataSet( "table1", dataSet2 );
> Table table = tableEnv.sql( "select t from table0 union select t from table1"
> );
> DataSet<Row> d = tableEnv.toDataSet(table, Row.class);
> d.print();
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)