You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Beam JIRA Bot (Jira)" <ji...@apache.org> on 2022/04/25 17:28:00 UTC

[jira] [Commented] (BEAM-13470) Spanner JSON Type Not Supported When Reading Schema

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

Beam JIRA Bot commented on BEAM-13470:
--------------------------------------

This issue is P2 but has been unassigned without any comment for 60 days so it has been labeled "stale-P2". If this issue is still affecting you, we care! Please comment and remove the label. Otherwise, in 14 days the issue will be moved to P3.

Please see https://beam.apache.org/contribute/jira-priorities/ for a detailed explanation of what these priorities mean.


> Spanner JSON Type Not Supported When Reading Schema
> ---------------------------------------------------
>
>                 Key: BEAM-13470
>                 URL: https://issues.apache.org/jira/browse/BEAM-13470
>             Project: Beam
>          Issue Type: New Feature
>          Components: io-java-gcp
>            Reporter: Victor Lai
>            Priority: P2
>              Labels: stale-P2
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Our existing data pipeline failed when we added the new [JSON column|https://cloud.google.com/spanner/docs/working-with-json] to a Spanner table that it writes to.  The following is the stack trace.
> {code:java}
>  Error message from worker: java.lang.IllegalArgumentException: Unknown spanner type JSON
>   org.apache.beam.sdk.io.gcp.spanner.SpannerSchema$Column.parseSpannerType(SpannerSchema.java:179)
>   org.apache.beam.sdk.io.gcp.spanner.SpannerSchema$Column.create(SpannerSchema.java:142)
>   org.apache.beam.sdk.io.gcp.spanner.SpannerSchema$Builder.addColumn(SpannerSchema.java:74)
>   org.apache.beam.sdk.io.gcp.spanner.ReadSpannerSchema.processElement(ReadSpannerSchema.java:63){code}
> I included a proposed patch below that has not yet been tested.
> https://github.com/apache/beam/compare/master...vilai-paypal:spanner_json_schema?expand=1



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