Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-20897][table-planner] Support batch mode in StreamTableEnviron…
…ment This enables batch mode for StreamTableEnvironment. Both StreamExecutionEnvironment, TableEnvironment, and StreamTableEnvironment use StreamGraphGenerator with the same configuration. Previous work ensured that when execution.runtime-mode is set to BATCH all batch properties are either set consistently (e.g. shuffle mode) or have no impact on the pipeline (e.g. auto watermark interval, state backends). Most of the changes are removing checks and ensuring that internal (e.g. values) and external (e.g. data stream, table source) source transformations are set to BOUNDED. The latter is a complex topic as we currently use 4 different ways of expressing external sources: - InputFormatProvider: Boundedness needs to be explicitly set by the planner due to custom formats that don't extend from FileInputFormat. - SourceFunctionProvider: Boundedness needs to be explicitly set by the planner via custom transformation to also disable progressive watermarks. - DataStreamScanProvider: Boundedness needs to be explicitly set by the planner to ensure old behavior again. New source interfaces + FileInputFormat are fine. - TransformationScanProvider: Boundedness can be derived automatically and will only work with new source interfaces + FileInputFormat. This closes apache#16793.
- Loading branch information