flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] lamber-ken commented on issue #7180: [FLINK-11010] [TABLE] Flink SQL timestamp is inconsistent with currentProcessingTime()
Date Sat, 29 Dec 2018 03:46:09 GMT
lamber-ken commented on issue #7180: [FLINK-11010] [TABLE] Flink SQL timestamp is inconsistent
with currentProcessingTime()
URL: https://github.com/apache/flink/pull/7180#issuecomment-450462796
 
 
   hi, @hequn8128, tableEnv can set timezone like bellow code. but just only set the timezone,
not apply to flink system. yes, it is better to solve it once for all, not just add the offset
simply.
   ```
   StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
   StreamTableEnvironment tableEnv = StreamTableEnvironment.getTableEnvironment(env);
   tableEnv.getConfig().setTimeZone(TimeZone.getDefault());       
           
   ```
   
   Or it can just add the offset simply now, and then redesign how to solve this problem(for
example, a global timezone configuration). because it can solve the problem currently.
   
   
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message