Re: How to use TableEnvironment in multiple thread environments

2022-01-18 Thread Chang Chen
ink this would make most sense to do. > > Cheers, > Till > > On Mon, Jan 17, 2022 at 9:13 AM Chang Chen wrote: > > > IIUC, TableEnvironment isn't thread-safe, since it contains some internal > > states, for example, PlannerContext that has RelOptCluster use

How to use TableEnvironment in multiple thread environments

2022-01-17 Thread Chang Chen
IIUC, TableEnvironment isn't thread-safe, since it contains some internal states, for example, PlannerContext that has RelOptCluster used to optimize SQL. So do I create a TableEnvironment per thread?