Title: property has list_value and don't want to index will raise exception · Issue #398 · googleapis/google-cloud-python · GitHub
Open Graph Title: property has list_value and don't want to index will raise exception · Issue #398 · googleapis/google-cloud-python
X Title: property has list_value and don't want to index will raise exception · Issue #398 · googleapis/google-cloud-python
Description: if a property is list_value and the property name is included in exclude_from_indexes the following exception will raise. The protobuf file has describe this behavior // A list value. // Cannot contain another list value. // Cannot also ...
Open Graph Description: if a property is list_value and the property name is included in exclude_from_indexes the following exception will raise. The protobuf file has describe this behavior // A list value. // Cannot con...
X Description: if a property is list_value and the property name is included in exclude_from_indexes the following exception will raise. The protobuf file has describe this behavior // A list value. // Cannot con...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/398
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"property has list_value and don't want to index will raise exception","articleBody":"if a property is `list_value` and the property name is included in `exclude_from_indexes` \nthe following exception will raise.\n\nThe protobuf file has describe this behavior\n\n```\n// A list value.\n // Cannot contain another list value.\n // Cannot also have a meaning and indexing set.\n repeated Value list_value = 7;\n```\n\nhttps://github.com/GoogleCloudPlatform/google-cloud-datastore/blob/v1beta2-rev1-2.1.0/proto/datastore_v1.proto#L123\n\n```\n File \"/usr/local/lib/python2.7/dist-packages/gcloud/datastore/entity.py\", line 244, in save\n exclude_from_indexes=self.exclude_from_indexes())\n File \"/usr/local/lib/python2.7/dist-packages/gcloud/datastore/connection.py\", line 425, in save_entity\n result = self.commit(dataset_id, mutation)\n File \"/usr/local/lib/python2.7/dist-packages/gcloud/datastore/connection.py\", line 329, in commit\n datastore_pb.CommitResponse)\n File \"/usr/local/lib/python2.7/dist-packages/gcloud/datastore/connection.py\", line 81, in _rpc\n data=request_pb.SerializeToString())\n File \"/usr/local/lib/python2.7/dist-packages/gcloud/datastore/connection.py\", line 59, in _request\n raise Exception('Request failed. Error was: %s' % content)\nException: Request failed. Error was: A Value containing a list_value cannot specify indexed.\n```\n\nAn example\n\n``` python\nentity = Dataset(dataset, kind, exclude_from_indexes=('a',))\nentity['a'] = [1,2,3]\nentity.save()\n```\n","author":{"url":"https://github.com/lucemia","@type":"Person","name":"lucemia"},"datePublished":"2014-12-02T08:56:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/398/google-cloud-python/issues/398"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b7dad6ef-64bd-d199-59a2-afcb0938d343 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1EC:475D7:3A196C:4F5062:6A4D5D45 |
| html-safe-nonce | 496b63b5dde2611e585ee4bfc259eeb42c09ee53a6815e0ee777aaa842d78bae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUVDOjQ3NUQ3OjNBMTk2Qzo0RjUwNjI6NkE0RDVENDUiLCJ2aXNpdG9yX2lkIjoiMjU4MDA1ODU5ODQ5NTU5MzY1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 52bb5c56e56727429b76bfdc6597f0993c5ddf8a3f4e3f6ec5cbe47fdd5e6013 |
| hovercard-subject-tag | issue:50626235 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/398/issue_layout |
| twitter:image | https://opengraph.githubassets.com/41c47d3aaf1047a98a0b773c2a668cb8103031d23d4135b9d47cfa12bd249652/googleapis/google-cloud-python/issues/398 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/41c47d3aaf1047a98a0b773c2a668cb8103031d23d4135b9d47cfa12bd249652/googleapis/google-cloud-python/issues/398 |
| og:image:alt | if a property is list_value and the property name is included in exclude_from_indexes the following exception will raise. The protobuf file has describe this behavior // A list value. // Cannot con... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lucemia |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2a1443ff9733a3016431263ea73c93d8fe00c195eb4a7670ac30e7848f045441 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3bdd3157ea1f0fd738d408eceeead721acf1dc3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width