lamber-ken edited a comment on issue #7180: [FLINK-11010] [TABLE] Flink SQL 
timestamp is inconsistent with currentProcessingTime()
URL: https://github.com/apache/flink/pull/7180#issuecomment-441977232
 
 
   more discussion details, please read [Question about Timestamp in Flink SQL 
](http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Question-about-Timestamp-in-Flink-SQL-td16928.html)
   
   ## minimal reproducible example
   ```
   
     public static void main(String[] args) throws Exception {
   
         StreamExecutionEnvironment env = 
StreamExecutionEnvironment.getExecutionEnvironment();
         StreamTableEnvironment tableEnv = 
TableEnvironment.getTableEnvironment(env);
   
         DataStreamSource<String> socket = env.socketTextStream("localhost", 
9999);
         tableEnv.registerDataStream("orders", socket, 
"user,proctime.proctime");
   
         Table result = tableEnv.sqlQuery("select proctime from orders");
   
         tableEnv
                 .toRetractStream(result, TypeInformation.of(Row.class))
                 .print();
         env.execute();
   
     }
   
   ```
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to