Title: Execution of STRUCT item access doesn't work. · Issue #293 · googleapis/python-bigquery-sqlalchemy · GitHub
Open Graph Title: Execution of STRUCT item access doesn't work. · Issue #293 · googleapis/python-bigquery-sqlalchemy
X Title: Execution of STRUCT item access doesn't work. · Issue #293 · googleapis/python-bigquery-sqlalchemy
Description: Compilation works: >>> select([t], t.c.object['object_id']=='x')
Open Graph Description: Compilation works: >>> select([t], t.c.object['object_id']=='x')
X Description: Compilation works: >>> select([t], t.c.object['object_id']=='x') <sqlalchemy.sql.selectable.Select object at 0x7f120baf18d0> But execution doesn't: >>> c...
Opengraph URL: https://github.com/googleapis/python-bigquery-sqlalchemy/issues/293
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Execution of STRUCT item access doesn't work.","articleBody":"Compilation works:\r\n\r\n```\r\n\u003e\u003e\u003e select([t], t.c.object['object_id']=='x')\r\n\u003csqlalchemy.sql.selectable.Select object at 0x7f120baf18d0\u003e\r\n```\r\n\r\nBut execution doesn't:\r\n\r\n```\r\n\u003e\u003e\u003e conn.execute(select([t], t.c.object['object_id']=='x'))\r\nTraceback (most recent call last):\r\n File \"/home/jim/.pyenv/versions/3.6.13/lib/python3.6/site-packages/sqlalchemy/sql/compiler.py\", line 2071, in visit_binary\r\n opstring = OPERATORS[operator_]\r\nKeyError: \u003cfunction json_getitem_op at 0x7f120bfa9d08\u003e\r\n\r\nThe above exception was the direct cause of the following exception:\r\n\r\nTraceback (most recent call last):\r\n...\r\n File \"/home/jim/.pyenv/versions/3.6.13/lib/python3.6/site-packages/sqlalchemy/util/compat.py\", line 207, in raise_\r\n raise exception\r\nsqlalchemy.exc.UnsupportedCompilationError: Compiler \u003cpybigquery.sqlalchemy_bigquery.BigQueryCompiler object at 0x7f120baf1a20\u003e can't render element of type \u003cfunction json_getitem_op at 0x7f120bfa9d08\u003e (Background on this error at: https://sqlalche.me/e/14/l7de)\r\n```","author":{"url":"https://github.com/jimfulton","@type":"Person","name":"jimfulton"},"datePublished":"2021-08-24T15:11:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/293/python-bigquery-sqlalchemy/issues/293"}
| 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:f7ca6b26-0bd3-fec2-0760-3acd900430db |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8A54:53234:16A6A67:1ED0FC7:6A4F2759 |
| html-safe-nonce | b082f6b74ae39883f58fc1ddad72f0ffa6961b935e7f8ec440d546cb0fd78596 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTU0OjUzMjM0OjE2QTZBNjc6MUVEMEZDNzo2QTRGMjc1OSIsInZpc2l0b3JfaWQiOiI3NjI0NjQ2NjM4MjQyMzA5OTc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d68d3f1754003c20b921bff5e6122fa8bc661690753d6ca788e17c810900cb3b |
| hovercard-subject-tag | issue:978207621 |
| 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/python-bigquery-sqlalchemy/293/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f1634599a8bfac381232af6847fc71ce8ff0ef577f8f1f13c753dbec6f96898d/googleapis/python-bigquery-sqlalchemy/issues/293 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f1634599a8bfac381232af6847fc71ce8ff0ef577f8f1f13c753dbec6f96898d/googleapis/python-bigquery-sqlalchemy/issues/293 |
| og:image:alt | Compilation works: >>> select([t], t.c.object['object_id']=='x') |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jimfulton |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-bigquery-sqlalchemy git https://github.com/googleapis/python-bigquery-sqlalchemy.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 93616231 |
| octolytics-dimension-repository_nwo | googleapis/python-bigquery-sqlalchemy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 93616231 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-bigquery-sqlalchemy |
| 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 | 2b8f23afb982271f1b22258a94aede67a6b77760 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width