Skip to content

Fix compilation error in JdbcExecutor.executeSinkStage#759

Merged
zkaoudi merged 1 commit into
apache:mainfrom
gknz:fix/jdbc-executor-filter-type-mismatch
May 20, 2026
Merged

Fix compilation error in JdbcExecutor.executeSinkStage#759
zkaoudi merged 1 commit into
apache:mainfrom
gknz:fix/jdbc-executor-filter-type-mismatch

Conversation

@gknz
Copy link
Copy Markdown

@gknz gknz commented May 20, 2026

The executeSinkStage method from the PR #750 declared filterTasks and joinTasks as Collection and Collection<JdbcJoinOperator<?>> respectively, but passed them to createSqlString() which expects Collection. Java generics are invariant so this caused a compilation failure. Fixed by makingg both local variable declarations to Collection, matching the existing pattern in the adjacent executeQueryStage method.

The executeSinkStage method introduced in apache#750 declared filterTasks and
joinTasks as Collection<JdbcFilterOperator> and Collection<JdbcJoinOperator<?>>
respectively, but passed them to createSqlString() which expects
Collection<JdbcExecutionOperator>. Java generics are invariant so this
caused a compilation failure. Fixed by widening both local variable
declarations to Collection<JdbcExecutionOperator>, matching the existing
pattern in the adjacent executeQueryStage method.
@zkaoudi zkaoudi merged commit 68d49c9 into apache:main May 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants