sql-api SqlToStream type issue

Open
#575 2 comments 0 reactions 2 assignees View on GitHub

@juripetersen is already working on this.

Since May 21, 2025.

Assessment

This issue has not been assessed yet.

Description

bug

SqlToStreamOperator extends UnaryToUnaryOperator which requires specifying a generic input and output. For SqlToStreamOperator this is set by default to SqlToStreamOperator<Record, Record> however this causes a crash for the JoinOperator in the sql-api as we flatten the tuple2 result after joining. In practice this can lead to cases where if we have a pipeline like:
postgres join -> SqlToStream -> java flatten map
This will crash due to SqlToStream forcing the tuple2 to be a Record.

Dominant language
Java
Stars
274
Forks
141
Avg merge
5d 16h
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/wayang

All issues in apache/wayang

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.