apache / apache/wayang

sql-api SqlToStream type issue

Open
#575 2 comments 0 reactions 2 assignees Claimed by @juripetersen View on GitHub
bug
Dominant language
Java
Stars
274
Forks
140
Avg merge
5d 16h
Merged PRs (30d)
4

Description

`SqlToStreamOperator` extends `UnaryToUnaryOperator` which requires specifying a generic input and output. For `SqlToStreamOperator` this is set by default to `SqlToStreamOperator` 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`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.