You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Kenneth Knowles (Jira)" <ji...@apache.org> on 2022/06/03 22:01:00 UTC

[jira] [Commented] (BEAM-4734) TableRowJsonCoder looses type

    [ https://issues.apache.org/jira/browse/BEAM-4734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17547253#comment-17547253 ] 

Kenneth Knowles commented on BEAM-4734:
---------------------------------------

This issue has been migrated to https://github.com/apache/beam/issues/19021

> TableRowJsonCoder looses type
> -----------------------------
>
>                 Key: BEAM-4734
>                 URL: https://issues.apache.org/jira/browse/BEAM-4734
>             Project: Beam
>          Issue Type: Bug
>          Components: io-java-gcp
>            Reporter: Etienne Chauchot
>            Priority: P3
>
> When we create a TableRow (e.g. in a row function in bigQueryIO) using new TableRow().set(), for ex a long gets boxed into a Long. But when it is encoded using TableRowJsonCoder and then re-read it might be decoded as an Integer if the value fits into Integer. It causes failure in asserts in tests like write then read.
>  
> Link to the discussion in the ML:
> https://lists.apache.org/thread.html/727fd63b2aa4890bed5953574a7e01485ef785de4558fd2327136ab8@%3Cdev.beam.apache.org%3E



--
This message was sent by Atlassian Jira
(v8.20.7#820007)