Title: How to fetch just the 'value' from a result set of Key value pair (dict) in Azure · stackql/stackql · Discussion #400 · GitHub
Open Graph Title: How to fetch just the 'value' from a result set of Key value pair (dict) in Azure · stackql/stackql · Discussion #400
X Title: How to fetch just the 'value' from a result set of Key value pair (dict) in Azure · stackql/stackql · Discussion #400
Description: How to fetch just the 'value' from a result set of Key value pair (dict) in Azure
Open Graph Description: @jeffreyaven How to fetch just the 'value' from a dict result set in Azure. I need to join it to other tables. stackql = StackQL(output='dict') query = """ select name from azure.compute.virtual_ma...
X Description: @jeffreyaven How to fetch just the 'value' from a dict result set in Azure. I need to join it to other tables. stackql = StackQL(output='dict') query = """ select nam...
Opengraph URL: https://github.com/stackql/stackql/discussions/400
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"How to fetch just the 'value' from a result set of Key value pair (dict) in Azure","text":"\u003cp dir=\"auto\"\u003e\u003ca class=\"user-mention notranslate\" data-hovercard-type=\"user\" data-hovercard-url=\"/users/jeffreyaven/hovercard\" data-octo-click=\"hovercard-link-click\" data-octo-dimensions=\"link_type:self\" href=\"https://github.com/jeffreyaven\"\u003e@jeffreyaven\u003c/a\u003e How to fetch just the 'value' from a dict result set in Azure. I need to join it to other tables.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003e\u003ccode class=\"notranslate\"\u003estackql = StackQL(output='dict') query = \"\"\" select name from azure.compute.virtual_machine_scale_sets where subscriptionId = '%s' and resourceGroupName = 'vmss-flex'; \"\"\" % (subscription_id) res = stackql.execute(query) print(res)\u003c/code\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eResult is \u003ccode class=\"notranslate\"\u003e[{'name': 'vmss1'}]\u003c/code\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI just need - vmss1.\u003cbr\u003e\nname.data or name.value does not work.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eI tried output = 'csv' and was able to get vmss1, but it was adding extra quotes to other json fields.\u003cbr\u003e\nAny help is appreciated.\u003c/p\u003e","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\u003cp dir=\"auto\"\u003ewhat's the error you are getting with this \u003ca class=\"user-mention notranslate\" data-hovercard-type=\"user\" data-hovercard-url=\"/users/vwake7/hovercard\" data-octo-click=\"hovercard-link-click\" data-octo-dimensions=\"link_type:self\" href=\"https://github.com/vwake7\"\u003e@vwake7\u003c/a\u003e the output format shouldn't affect this\u003c/p\u003e","upvoteCount":0,"url":"https://github.com/stackql/stackql/discussions/400#discussioncomment-9208280"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:a98faff8-4546-aaf4-611d-a29ce1407eda |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | 9B78:2495A6:211789A:2FF40E4:6A4D1160 |
| html-safe-nonce | 9cff6f642a1420dc84530dfe07f9f8ff2b0c649d1936f6890b41b3426d1a315d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qjc4OjI0OTVBNjoyMTE3ODlBOjJGRjQwRTQ6NkE0RDExNjAiLCJ2aXNpdG9yX2lkIjoiNTkwMTMwMTg5ODQ2NDI2ODY0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f0956aec29fbff354d9bc1af2df7fa7de3626824c23228a2ba9f65edfb3d9622 |
| hovercard-subject-tag | discussion:6548583 |
| github-keyboard-shortcuts | repository,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/Voltron::DiscussionsFragmentsController/show/stackql/stackql/400/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/08302686e39b62d4ff762c9edfeff77846e9f8cc856d44de96b2ef7b1e858f9b/stackql/stackql/discussions/400 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/08302686e39b62d4ff762c9edfeff77846e9f8cc856d44de96b2ef7b1e858f9b/stackql/stackql/discussions/400 |
| og:image:alt | @jeffreyaven How to fetch just the 'value' from a dict result set in Azure. I need to join it to other tables. stackql = StackQL(output='dict') query = """ select name from azure.compute.virtual_ma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | f02420044fa3730a0607f4a52546bdd73f5ae60187ef57d284ecb6d7f3f1d880 |
| turbo-cache-control | no-preview |
| go-import | github.com/stackql/stackql git https://github.com/stackql/stackql.git |
| octolytics-dimension-user_id | 95105302 |
| octolytics-dimension-user_login | stackql |
| octolytics-dimension-repository_id | 443987542 |
| octolytics-dimension-repository_nwo | stackql/stackql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 443987542 |
| octolytics-dimension-repository_network_root_nwo | stackql/stackql |
| 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 | f0b6a62c1f0be1086cb0b5b077b82cebe520eb42 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width