[ 
https://issues.apache.org/jira/browse/BEAM-3342?focusedWorklogId=240428&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-240428
 ]

ASF GitHub Bot logged work on BEAM-3342:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/May/19 21:28
            Start Date: 10/May/19 21:28
    Worklog Time Spent: 10m 
      Work Description: mf2199 commented on pull request #8457: [BEAM-3342] 
Initial version of Google Cloud Bigtable IO connector
URL: https://github.com/apache/beam/pull/8457#discussion_r283048178
 
 

 ##########
 File path: sdks/python/apache_beam/io/gcp/bigtableio_test.py
 ##########
 @@ -0,0 +1,218 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+"""Unittest for GCP Bigtable Split testing."""
+from __future__ import absolute_import
+from __future__ import division
+
+import logging
+import mock
+import sys
+import unittest
+
+from .bigtableio import BigtableSource
+
+try:
+  from google.cloud.bigtable import Client
+  from google.cloud.bigtable.row_data import PartialRowData
+  from google.cloud.bigtable.row_set import RowRange
+  from google.cloud.bigtable.row_set import RowSet
+  from google.cloud.bigtable.table import Table
+  from google.cloud.bigtable_v2.proto.bigtable_pb2 import SampleRowKeysResponse
+except ImportError:
+  Client = None
+  PartialRowData = None
+  RowRange = None
+  RowSet = None
+  SampleRowKeysResponse = None
+  Table = None
+
+KEYS_1 = [b'beam_key0672496', b'beam_key1582279', b'beam_key22',
+          b'beam_key2874203', b'beam_key3475534', b'beam_key4440786',
+          b'beam_key51', b'beam_key56', b'beam_key65', b'beam_key7389168',
+          b'beam_key8105103', b'beam_key9007992', b'']
+
+KEYS_2 = [b'beam_key0952711', b'beam_key2', b'beam_key2797065',
+          b'beam_key3518235', b'beam_key41', b'beam_key4730550',
+          b'beam_key54', b'beam_key6404724', b'beam_key7123742',
+          b'beam_key7683967', b'beam_key83', b'beam_key8892594',
+          b'beam_key943', b'']
+
+RANGES_DICT = {
+  '': (0, 952),
+  'beam_key0952': (952, 2000),
+  'beam_key2': (2000, 2797),
+  'beam_key2797': (2797, 3518),
+  'beam_key3518': (3518, 4100),
+  'beam_key41': (4100, 4730),
+  'beam_key4730': (4730, 5400),
+  'beam_key54': (5400, 6404),
+  'beam_key6404': (6404, 7123),
+  'beam_key7123': (7123, 7683),
+  'beam_key7683': (7683, 8300),
+  'beam_key83': (8300, 8892),
+  'beam_key8892': (8892, 9430),
+  'beam_key943': (9430, 9930),
+}
+
+SIZE_768M = 805306368
+SIZE_9984M = 10468982784
+
+@unittest.skipIf(Table is None, 'GCP Bigtable dependencies are not installed')
+@unittest.skipIf(Client is None, 'GCP Bigtable dependencies are not installed')
 
 Review comment:
   Agreed. The 'Table is None' check has been removed.
 
----------------------------------------------------------------
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:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 240428)
    Time Spent: 21.5h  (was: 21h 20m)

> Create a Cloud Bigtable Python connector
> ----------------------------------------
>
>                 Key: BEAM-3342
>                 URL: https://issues.apache.org/jira/browse/BEAM-3342
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Solomon Duskis
>            Assignee: Solomon Duskis
>            Priority: Major
>          Time Spent: 21.5h
>  Remaining Estimate: 0h
>
> I would like to create a Cloud Bigtable python connector.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to