use of org.apache.flink.table.connector.source.ScanTableSource.ScanRuntimeProvider in project flink by apache.
the class DynamicSourceUtils method validateScanSource.
private static void validateScanSource(String tableDebugName, ResolvedSchema schema, ScanTableSource scanSource, boolean isBatchMode, ReadableConfig config) {
final ScanRuntimeProvider provider = scanSource.getScanRuntimeProvider(ScanRuntimeProviderContext.INSTANCE);
final ChangelogMode changelogMode = scanSource.getChangelogMode();
validateWatermarks(tableDebugName, schema);
if (isBatchMode) {
validateScanSourceForBatch(tableDebugName, changelogMode, provider);
} else {
validateScanSourceForStreaming(tableDebugName, schema, scanSource, changelogMode, config);
}
}
Aggregations