Martijn Visser created FLINK-40747:
--------------------------------------
Summary: PreparedSplitterEnumerator.of(sqlTemplate) produces no
split, the source reads nothing
Key: FLINK-40747
URL: https://issues.apache.org/jira/browse/FLINK-40747
Project: Flink
Issue Type: Bug
Components: Connectors / JDBC
Affects Versions: jdbc-4.1.0
Reporter: Martijn Visser
Assignee: Martijn Visser
Fix For: jdbc-4.1.1, jdbc-5.0.0
The single-argument factory builds the enumerator with an empty parameter
matrix and `SqlSplitterEnumerator` makes one split per row, so a query without
parameters yields no split and the job finishes without reading a row and
without an error. It is the first example in the `JdbcSourceBuilder` class
javadoc and in the docs update of FLINK-40273. Fix: one empty parameter row,
which the reader binds as no parameters. `SlideTimingSplitterEnumerator` keeps
relying on the empty-matrix → no-split rule between windows, so the base class
is unchanged.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)