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?
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?