Title: Query order argument incorrectly uses a string as an iterable type. · Issue #887 · googleapis/google-cloud-python · GitHub
Open Graph Title: Query order argument incorrectly uses a string as an iterable type. · Issue #887 · googleapis/google-cloud-python
X Title: Query order argument incorrectly uses a string as an iterable type. · Issue #887 · googleapis/google-cloud-python
Description: When querying an empty dataset that is empty with a sort order, for example: query = datastore.Query(kind='Book', order='title') it = query.fetch(limit=limit, start_cursor=cursor) entities, more_results, cursor = it.next_page() It raises...
Open Graph Description: When querying an empty dataset that is empty with a sort order, for example: query = datastore.Query(kind='Book', order='title') it = query.fetch(limit=limit, start_cursor=cursor) entities, more_re...
X Description: When querying an empty dataset that is empty with a sort order, for example: query = datastore.Query(kind='Book', order='title') it = query.fetch(limit=limit, start_cursor=cursor) e...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/887
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Query order argument incorrectly uses a string as an iterable type. ","articleBody":"When querying an empty dataset that is empty with a sort order, for example:\n\n``` python\nquery = datastore.Query(kind='Book', order='title')\nit = query.fetch(limit=limit, start_cursor=cursor)\nentities, more_results, cursor = it.next_page()\n```\n\nIt raises an exception:\n\n```\nPreconditionFailed: 412 no matching index found.\n```\n\nOnce you create an entity in the dataset, the error disappears. It reappears when you delete all entities.\n\ngcloud-node doesn't suffer from the same problem, as this just returns an empty array for an empty dataset:\n\n``` javascript\nvar q = ds.createQuery([kind])\n .limit(limit)\n .order('title')\n .start(token);\n```\n","author":{"url":"https://github.com/theacodes","@type":"Person","name":"theacodes"},"datePublished":"2015-05-20T22:49:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":11},"url":"https://github.com/887/google-cloud-python/issues/887"}
| 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:f6dd0601-3a7e-4362-f4e1-7343824ced3b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D91E:F97BC:77486:A1BF9:6A4D2DAF |
| html-safe-nonce | 1865742645bf2cbadf57ee0471a03f49d515677abb7f7d86ac5d36320441a853 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTFFOkY5N0JDOjc3NDg2OkExQkY5OjZBNEQyREFGIiwidmlzaXRvcl9pZCI6Ijg5OTQzNDg2Mjg0NzU0NTY5NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3e08a936c5e04d20d2a616d05dfac577d5f00c393ca29fbce1bc5f913067de83 |
| hovercard-subject-tag | issue:78732399 |
| 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/887/issue_layout |
| twitter:image | https://opengraph.githubassets.com/176d54d1afbc7d91d635935698a27d54fe9cdd9398c6185dc47f4ea998a463be/googleapis/google-cloud-python/issues/887 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/176d54d1afbc7d91d635935698a27d54fe9cdd9398c6185dc47f4ea998a463be/googleapis/google-cloud-python/issues/887 |
| og:image:alt | When querying an empty dataset that is empty with a sort order, for example: query = datastore.Query(kind='Book', order='title') it = query.fetch(limit=limit, start_cursor=cursor) entities, more_re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | theacodes |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| 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 | 93f17a978ee60bc4668e1d7b90e6bd2d622261fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width