We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89bdd32 commit 5ca8bbdCopy full SHA for 5ca8bbd
docs/snippets_table.py
@@ -202,9 +202,15 @@ def test_bigtable_write_read_drop_truncate():
202
203
# Read full table
204
partial_rows = table.read_rows()
205
- read_rows = [row for row in partial_rows]
+
206
+ # Read row's value
207
+ total_rows = []
208
+ for row in partial_rows:
209
+ cell = row.cells[COLUMN_FAMILY_ID][col_name][0]
210
+ print(cell.value.decode("utf-8"))
211
+ total_rows.append(cell)
212
# [END bigtable_read_rows]
- assert len(read_rows) == len(rows)
213
+ assert len(total_rows) == len(rows)
214
# [START bigtable_drop_by_prefix]
215
from google.cloud.bigtable import Client
216
0 commit comments