[ 
https://issues.apache.org/jira/browse/FLINK-40747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated FLINK-40747:
-----------------------------------
    Labels: pull-request-available  (was: )

> 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
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: jdbc-5.0.0, jdbc-4.1.1
>
>
> 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)

Reply via email to