apache/beam

In WithKeys, get coder for key more safely.

已关闭

#18,571 创建于 2022年6月3日

 (2 条评论) (0 个反应) (0 位负责人)Java (4,097 个派生)batch import
P3coregood first issueimprovementjava

仓库指标

星标
 (7,313 个星标)
PR 合并指标
 (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.

贡献者指南