[
https://issues.apache.org/jira/browse/BEAM-13470?focusedWorklogId=710041&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-710041
]
ASF GitHub Bot logged work on BEAM-13470:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 17/Jan/22 16:22
Start Date: 17/Jan/22 16:22
Worklog Time Spent: 10m
Work Description: viclai closed pull request #16535:
URL: https://github.com/apache/beam/pull/16535
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 710041)
Time Spent: 0.5h (was: 20m)
> 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
> Assignee: Victor Lai
> Priority: 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.1#820001)