[
https://issues.apache.org/jira/browse/BEAM-7246?focusedWorklogId=379317&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-379317
]
ASF GitHub Bot logged work on BEAM-7246:
----------------------------------------
Author: ASF GitHub Bot
Created on: 30/Jan/20 10:57
Start Date: 30/Jan/20 10:57
Worklog Time Spent: 10m
Work Description: mszb commented on pull request #10712: [BEAM-7246]
Added Google Spanner Write Transform
URL: https://github.com/apache/beam/pull/10712#discussion_r372833189
##########
File path: sdks/python/apache_beam/io/gcp/experimental/spannerio.py
##########
@@ -131,13 +187,18 @@
try:
from google.cloud.spanner import Client
from google.cloud.spanner import KeySet
+ from google.cloud.spanner_v1 import batch
from google.cloud.spanner_v1.database import BatchSnapshot
+ from google.cloud.spanner_v1.proto.mutation_pb2 import Mutation
Review comment:
Since spanner package wont expose the `Mutation` and `batch` objects, so
this is the only way to import it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 379317)
> Create a Spanner IO for Python
> ------------------------------
>
> Key: BEAM-7246
> URL: https://issues.apache.org/jira/browse/BEAM-7246
> Project: Beam
> Issue Type: Bug
> Components: io-py-gcp
> Reporter: Reuven Lax
> Assignee: Shehzaad Nakhoda
> Priority: Major
> Time Spent: 14h 50m
> Remaining Estimate: 0h
>
> Add I/O support for Google Cloud Spanner for the Python SDK (Batch Only).
> Testing in this work item will be in the form of DirectRunner tests and
> manual testing.
> Integration and performance tests are a separate work item (not included
> here).
> See https://beam.apache.org/documentation/io/built-in/. The goal is to add
> Google Clound Spanner to the Database column for the Python/Batch row.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)