{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go/issues/208","repository_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go/issues/208/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go/issues/208/events","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-go/issues/208","id":129790342,"number":208,"title":"bigtable: rowkey support only string and it is not compatible with Java HBase driver","user":{"login":"reagere","id":13852255,"avatar_url":"https://avatars.githubusercontent.com/u/13852255?v=3","gravatar_id":"","url":"https://api.github.com/users/reagere","html_url":"https://github.com/reagere","followers_url":"https://api.github.com/users/reagere/followers","following_url":"https://api.github.com/users/reagere/following{/other_user}","gists_url":"https://api.github.com/users/reagere/gists{/gist_id}","starred_url":"https://api.github.com/users/reagere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reagere/subscriptions","organizations_url":"https://api.github.com/users/reagere/orgs","repos_url":"https://api.github.com/users/reagere/repos","events_url":"https://api.github.com/users/reagere/events{/privacy}","received_events_url":"https://api.github.com/users/reagere/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go/labels/bigtable","name":"bigtable","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"garye","id":37807,"avatar_url":"https://avatars.githubusercontent.com/u/37807?v=3","gravatar_id":"","url":"https://api.github.com/users/garye","html_url":"https://github.com/garye","followers_url":"https://api.github.com/users/garye/followers","following_url":"https://api.github.com/users/garye/following{/other_user}","gists_url":"https://api.github.com/users/garye/gists{/gist_id}","starred_url":"https://api.github.com/users/garye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garye/subscriptions","organizations_url":"https://api.github.com/users/garye/orgs","repos_url":"https://api.github.com/users/garye/repos","events_url":"https://api.github.com/users/garye/events{/privacy}","received_events_url":"https://api.github.com/users/garye/received_events","type":"User","site_admin":false},"assignees":[{"login":"garye","id":37807,"avatar_url":"https://avatars.githubusercontent.com/u/37807?v=3","gravatar_id":"","url":"https://api.github.com/users/garye","html_url":"https://github.com/garye","followers_url":"https://api.github.com/users/garye/followers","following_url":"https://api.github.com/users/garye/following{/other_user}","gists_url":"https://api.github.com/users/garye/gists{/gist_id}","starred_url":"https://api.github.com/users/garye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garye/subscriptions","organizations_url":"https://api.github.com/users/garye/orgs","repos_url":"https://api.github.com/users/garye/repos","events_url":"https://api.github.com/users/garye/events{/privacy}","received_events_url":"https://api.github.com/users/garye/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-01-29T15:02:58Z","updated_at":"2016-10-13T14:38:13Z","closed_at":null,"body":"Hello,\r\n\r\nI made a modification in bigtable.go so it can support any rowkey format, not only String.\r\nThe representation is hexadecimal.\r\n\r\nCheck @ https://github.com/reagere/gcloud-golang\r\n\r\nUnfortunately it is not compatible with the current way.\r\n\r\nCheers,"},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go/issues/comments/253532493","html_url":"https://github.com/GoogleCloudPlatform/google-cloud-go/issues/208#issuecomment-253532493","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/google-cloud-go/issues/208","id":253532493,"user":{"login":"heldtogether","id":1642904,"avatar_url":"https://avatars.githubusercontent.com/u/1642904?v=3","gravatar_id":"","url":"https://api.github.com/users/heldtogether","html_url":"https://github.com/heldtogether","followers_url":"https://api.github.com/users/heldtogether/followers","following_url":"https://api.github.com/users/heldtogether/following{/other_user}","gists_url":"https://api.github.com/users/heldtogether/gists{/gist_id}","starred_url":"https://api.github.com/users/heldtogether/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heldtogether/subscriptions","organizations_url":"https://api.github.com/users/heldtogether/orgs","repos_url":"https://api.github.com/users/heldtogether/repos","events_url":"https://api.github.com/users/heldtogether/events{/privacy}","received_events_url":"https://api.github.com/users/heldtogether/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T14:38:13Z","updated_at":"2016-10-13T14:38:13Z","body":"Sure. In Java: \r\n\r\n```java\r\nString rowKey = \"GB##en##+iPad +Case\";\r\n\r\nTable table = connection.getTable(TableName.valueOf(\"table\"));\r\n\r\nPut put = new Put(Bytes.toBytes(rowKey));\r\nput.addColumn(Bytes.toBytes(\"i\"), Bytes.toBytes(\"region\"), Bytes.toBytes(\"GB\"));\r\ntable.put(put);\r\n```\r\n\r\nThen in Go:\r\n\r\n```go \r\nprefix := \"GB##en##+iPad\";\r\n\r\ntbl := client.Open(\"table\")\r\n\r\nrr := bigtable.PrefixRange(prefix)\r\nerr := tbl.ReadRows(ctx, rr, func(r bigtable.Row) bool {\r\n\tprint(r)\r\n\treturn true\r\n}, bigtable.RowFilter(bigtable.ColumnFilter(\"i\")))\r\n```\r\n\r\nIt seems `tbl.ReadRows` returns an empty set. "}}
{"actor":{"display_login":"heldtogether"}}