Title: `find`, `find_multi` don't work for unordered composite keys · Issue #192 · google/python-spanner-orm · GitHub
Open Graph Title: `find`, `find_multi` don't work for unordered composite keys · Issue #192 · google/python-spanner-orm
X Title: `find`, `find_multi` don't work for unordered composite keys · Issue #192 · google/python-spanner-orm
Description: Didn't see it anywhere in the docs, so filing this as a bug When you declare a model with more than one primary key, say class FooModel(spanner_orm.Model): __table__ = "products" bar = spanner_orm.Field(spanner_orm.String(), primary_key=...
Open Graph Description: Didn't see it anywhere in the docs, so filing this as a bug When you declare a model with more than one primary key, say class FooModel(spanner_orm.Model): __table__ = "products" bar = spanner_orm....
X Description: Didn't see it anywhere in the docs, so filing this as a bug When you declare a model with more than one primary key, say class FooModel(spanner_orm.Model): __table__ = "products" bar ...
Opengraph URL: https://github.com/google/python-spanner-orm/issues/192
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`find`, `find_multi` don't work for unordered composite keys","articleBody":"Didn't see it anywhere in the docs, so filing this as a bug\n\nWhen you declare a model with more than one primary key, say\n\n```\nclass FooModel(spanner_orm.Model):\n __table__ = \"products\"\n bar = spanner_orm.Field(spanner_orm.String(), primary_key=True)\n baz = spanner_orm.Field(spanner_orm.String(), primary_key=True)\n```\n\n\nIf the table's schema is defined having the column `baz` before `bar`, `find_multi` (and therefore also `find`) won't work properly, as the keyset is compound in different order (ie: `Product.find(bar=\"123\", baz=\"456\")` will instead do `Product.find(baz=\"123\", bar=\"456\")`.\n ","author":{"url":"https://github.com/schattian","@type":"Person","name":"schattian"},"datePublished":"2025-01-26T15:07:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/192/python-spanner-orm/issues/192"}
| 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:d0dc7dd9-cc9e-a371-37ba-a25f368c2de9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF12:119CB6:1E8BE7:299441:697B3FB3 |
| html-safe-nonce | e6442c561d739ce7a4224acacac163c421a5dc8dcfe225044d8cf70ded66949d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjEyOjExOUNCNjoxRThCRTc6Mjk5NDQxOjY5N0IzRkIzIiwidmlzaXRvcl9pZCI6IjI2MDMyMTY1ODIyMzQyOTIxNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ddcd9bb785c0660ccc11f81215499f6e091a011b01d0c8cdc65ebe996b861d65 |
| hovercard-subject-tag | issue:2811610894 |
| 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/google/python-spanner-orm/192/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0737b287c548040d69e139ec903290e9a0a2c89a2de560c2ef73d04758eb33d2/google/python-spanner-orm/issues/192 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0737b287c548040d69e139ec903290e9a0a2c89a2de560c2ef73d04758eb33d2/google/python-spanner-orm/issues/192 |
| og:image:alt | Didn't see it anywhere in the docs, so filing this as a bug When you declare a model with more than one primary key, say class FooModel(spanner_orm.Model): __table__ = "products" bar = spanner_orm.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | schattian |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6fe64d94889230be19a900846cfc91707e7dd4206878d6c208922b46a6b0735d |
| turbo-cache-control | no-preview |
| go-import | github.com/google/python-spanner-orm git https://github.com/google/python-spanner-orm.git |
| octolytics-dimension-user_id | 1342004 |
| octolytics-dimension-user_login | |
| octolytics-dimension-repository_id | 155757264 |
| octolytics-dimension-repository_nwo | google/python-spanner-orm |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 155757264 |
| octolytics-dimension-repository_network_root_nwo | google/python-spanner-orm |
| 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 | 15736a47b83581130a149aa1b928696bea06adde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width