apache/beam

In WithKeys, get coder for key more safely.

Open

#18,571 建立於 2022年6月3日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Java (4,097 fork)batch import
P3coregood first issueimprovementjava

倉庫指標

Star
 (7,313 star)
PR 合併指標
 (平均合併 6天) (30 天內合併 243 個 PR)

描述

In WithKeys.java currently the coder for the key type is chosen when the transform is expanded. This means that there's no way to directly get the type of the input elements, instead the type is inferred from the function or from a java Class<> object. This means there can be mismatches between the actual type of the input and the coder used.

WithKeys should be refactored to retrieve the coder in a safer way and avoid the possibility of mismatches.

Imported from Jira BEAM-3003. Original Jira may contain additional context. Reported by: danoliveira.

貢獻者指南