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

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

                Author: ASF GitHub Bot
            Created on: 15/Feb/19 22:16
            Start Date: 15/Feb/19 22:16
    Worklog Time Spent: 10m 
      Work Description: chamikaramj commented on pull request #7737: 
[BEAM-3342] Create a Cloud Bigtable Python connector Read
URL: https://github.com/apache/beam/pull/7737#discussion_r257065223
 
 

 ##########
 File path: sdks/python/apache_beam/examples/cookbook/bigtableio_it_test.py
 ##########
 @@ -188,6 +191,25 @@ def test_bigtable_write(self):
           logging.info('Number of Rows: %d', read_counter.committed)
           assert read_counter.committed == number
 
+  def test_bigtable_read(self):
+    pipeline_args = self.test_pipeline.options_list
+    pipeline_options = PipelineOptions(pipeline_args)
+
+    with beam.Pipeline(options=pipeline_options) as pipeline:
+      count = (pipeline
+               | 'Read Direct Rows' >> ReadFromBigTable(self.project,
+                                                        self.instance_id,
+                                                        self.table_id)
+               | 'Count' >> beam.combiners.Count.Globally())
+
+      read_rows = self.table.read_rows()
+      assert_that(count, equal_to([len([_ for _ in read_rows])]))
 
 Review comment:
   Also, please add an integration test that is run regularly as a part of 
beam_PostCommit_Python_Verify (or another post-commit integration test).
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: 199476)
    Time Spent: 16h 50m  (was: 16h 40m)

> 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
>              Labels: triaged
>          Time Spent: 16h 50m
>  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