{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2677","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2677/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2677/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2677/events","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2677","id":187224973,"number":2677,"title":"[BigTable] Insert new record with the existing row_key multiple times?","user":{"login":"dmitry-saritasa","id":1747653,"avatar_url":"https://avatars.githubusercontent.com/u/1747653?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitry-saritasa","html_url":"https://github.com/dmitry-saritasa","followers_url":"https://api.github.com/users/dmitry-saritasa/followers","following_url":"https://api.github.com/users/dmitry-saritasa/following{/other_user}","gists_url":"https://api.github.com/users/dmitry-saritasa/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitry-saritasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitry-saritasa/subscriptions","organizations_url":"https://api.github.com/users/dmitry-saritasa/orgs","repos_url":"https://api.github.com/users/dmitry-saritasa/repos","events_url":"https://api.github.com/users/dmitry-saritasa/events{/privacy}","received_events_url":"https://api.github.com/users/dmitry-saritasa/received_events","type":"User","site_admin":false},"labels":[{"id":210703442,"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/labels/bigtable","name":"bigtable","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-04T00:27:59Z","updated_at":"2016-11-04T02:45:54Z","closed_at":"2016-11-04T02:45:36Z","body":"Is it possible to append additional rows with the existing 'rowkey' in Bigtable?\r\n\r\nit seems when I call \r\n\r\n```python\r\nfrom operator import itemgetter\r\nimport random\r\n\r\ndef get_row_key(record, template):\r\n    attrs = itemgetter(*template)\r\n    vals = attrs(record)\r\n    return '#'.join((str(v) for v in vals)\r\n\r\n# main\r\nrecord = dict(\r\n    user=random.randint(10, 1000),\r\n    viewability=30,\r\n    developer=1,\r\n    advertiser=2,\r\n    campaign=3,\r\n    game=4,\r\n    spot=5,\r\n    asset=6,\r\n    sex='m',\r\n    age=50,\r\n    browser='chrome',\r\n    browser_ver='55',\r\n    os='android',\r\n    os_ver='5.0',\r\n    mobile=True,\r\n    desktop=False,\r\n    country='us',\r\n    ip_addr='127.0.0.1',\r\n    created=1478218018,\r\n    tick_size=5,\r\n    session='aaaa'\r\n    is_generic=False\r\n)\r\n\r\n# pattern used in itemgetter\r\nrowkey = ('asset', 'created', 'advertiser')\r\nrow = table.row(get_row_key(record, pattern))\r\nfor column, val in record.items():\r\n    row.set_cell('stat', column, val)\r\nrow.commit()\r\n```\r\n\r\nso if I run code against the same record 3 times (which will produce the same rowkey for the row) I only get a single row. It seems 1st row is inserted, and then 2nd and 3rd mutate the same row. How to make it append? (OR row_key HAS TO BE UNIQUE?)\r\n\r\nthanks,\r\nDmitry\r\n"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/comments/258331802","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-python/issues/2677#issuecomment-258331802","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-python/issues/2677","id":258331802,"user":{"login":"dhermes","id":520669,"avatar_url":"https://avatars.githubusercontent.com/u/520669?v=3","gravatar_id":"","url":"https://api.github.com/users/dhermes","html_url":"https://github.com/dhermes","followers_url":"https://api.github.com/users/dhermes/followers","following_url":"https://api.github.com/users/dhermes/following{/other_user}","gists_url":"https://api.github.com/users/dhermes/gists{/gist_id}","starred_url":"https://api.github.com/users/dhermes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhermes/subscriptions","organizations_url":"https://api.github.com/users/dhermes/orgs","repos_url":"https://api.github.com/users/dhermes/repos","events_url":"https://api.github.com/users/dhermes/events{/privacy}","received_events_url":"https://api.github.com/users/dhermes/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T02:45:53Z","updated_at":"2016-11-04T02:45:53Z","body":"I'm happy to re-open if I've misunderstood the question."}}
{"actor":{"display_login":"dhermes"}}