You should be good with using the TableEnvironment. The StreamTableEnvironment is needed only if you want to convert to DataStream. We do not support converting batch Table programs to DataStream yet.
A following code should work: EnvironmentSettings settings = EnvironmentSettings.newInstance().inBatchMode().build(); TableEnvironment.create(settings); Best, Dawid On 10/07/2020 11:48, Flavio Pompermaier wrote: > Hi to all, > I was trying to update my legacy code to Flink 1.11. Before I was > using a BatchTableEnv and now I've tried to use the following: > > EnvironmentSettings settings = > EnvironmentSettings.newInstance().inBatchMode().build(); > > Unfortunately in the StreamTableEnvironmentImpl code there's : > > if (!settings.isStreamingMode()) { > throw new TableException( > "StreamTableEnvironment can not run in batch mode for now, please use > TableEnvironment."); > } > > What should I do here? > > Thanks in advance, > Flavio
signature.asc
Description: OpenPGP digital signature