wuchong commented on issue #8712: [FLINK-12819][sql-client] Reuse 
TableEnvironment between different SQ…
URL: https://github.com/apache/flink/pull/8712#issuecomment-502051439
 
 
   Thanks for the pull request @docete .  
   
   However, I think we can't reuse `TableEnvironment` between SQLs. Because 
`StreamExecutionEnvironment` is stateful and will cache the previous 
transformation. Which means it will re-run the first SQL job when submitting 
the second SQL job. 
   
   I think we should decouple `StreamExecutionEnvironment` from 
`TableEnvironment` first, i.e. generate the` StreamGraph` by `TableEnvironment` 
itself. And then start this work.

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


With regards,
Apache Git Services

Reply via email to