Title: [FEATURE] Support for scalar functions in outer query columns in a subquery · Issue #161 · stackql/stackql · GitHub
Open Graph Title: [FEATURE] Support for scalar functions in outer query columns in a subquery · Issue #161 · stackql/stackql
X Title: [FEATURE] Support for scalar functions in outer query columns in a subquery · Issue #161 · stackql/stackql
Description: Feature Description It would help to reduce repeated code if we could use scalar functions in the column list in the outer query in a subquery, for instance: SELECT name, iif(isResidencyRestricted = 0, 'false', 'true') as isResidencyRest...
Open Graph Description: Feature Description It would help to reduce repeated code if we could use scalar functions in the column list in the outer query in a subquery, for instance: SELECT name, iif(isResidencyRestricted ...
X Description: Feature Description It would help to reduce repeated code if we could use scalar functions in the column list in the outer query in a subquery, for instance: SELECT name, iif(isResidencyRestricted ...
Opengraph URL: https://github.com/stackql/stackql/issues/161
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[FEATURE] Support for scalar functions in outer query columns in a subquery","articleBody":"**Feature Description**\r\nIt would help to reduce repeated code if we could use scalar functions in the column list in the outer query in a subquery, for instance:\r\n\r\n```sql\r\nSELECT \r\nname,\r\niif(isResidencyRestricted = 0, 'false', 'true') as isResidencyRestricted,\r\nbackupStorageRedundancies,\r\nsupportsAvailabilityZone \r\nFROM (\r\n SELECT \r\n name,\r\n json_extract(properties, '$.isResidencyRestricted') as isResidencyRestricted,\r\n json_extract(properties, '$.supportsAvailabilityZone') as supportsAvailabilityZone,\r\n json_extract(properties, '$.backupStorageRedundancies') as backupStorageRedundancies \r\n FROM azure.cosmos_db.locations \r\n WHERE subscriptionId = '631d1c6d-2a65-43e7-93c2-688bfe4e1468'\r\n) AS virtual_table;\r\n```\r\ncurrently this is not supported, however it works if you remove the function, e.g.:\r\n\r\n```sql\r\nSELECT \r\nname,\r\nisResidencyRestricted,\r\nbackupStorageRedundancies,\r\nsupportsAvailabilityZone \r\nFROM (\r\n SELECT \r\n name,\r\n json_extract(properties, '$.isResidencyRestricted') as isResidencyRestricted,\r\n json_extract(properties, '$.supportsAvailabilityZone') as supportsAvailabilityZone,\r\n json_extract(properties, '$.backupStorageRedundancies') as backupStorageRedundancies \r\n FROM azure.cosmos_db.locations \r\n WHERE subscriptionId = '631d1c6d-2a65-43e7-93c2-688bfe4e1468'\r\n) AS virtual_table;\r\n```","author":{"url":"https://github.com/jeffreyaven","@type":"Person","name":"jeffreyaven"},"datePublished":"2023-03-03T03:28:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/161/stackql/issues/161"}
| 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:3d5d947b-4948-bcc4-4b9b-c14b43012b9f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B446:37F05C:21242A:304236:6A4D098D |
| html-safe-nonce | 316177a9c978575f7fea142410400dedb320af3b57fe85d800f4bf973eb96899 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDQ2OjM3RjA1QzoyMTI0MkE6MzA0MjM2OjZBNEQwOThEIiwidmlzaXRvcl9pZCI6IjgxNDU5MzAyNjc4MTY0Mjk5NjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8f3baa8103c7d202f130e6e7cd48eedfafb0c62c4855eec4b968cb9fd765799a |
| hovercard-subject-tag | issue:1607880886 |
| 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/stackql/stackql/161/issue_layout |
| twitter:image | https://opengraph.githubassets.com/af2119fe07f07d35db2fa9afe456196ccad2c54be2eb56a65c4531be8155a1ca/stackql/stackql/issues/161 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/af2119fe07f07d35db2fa9afe456196ccad2c54be2eb56a65c4531be8155a1ca/stackql/stackql/issues/161 |
| og:image:alt | Feature Description It would help to reduce repeated code if we could use scalar functions in the column list in the outer query in a subquery, for instance: SELECT name, iif(isResidencyRestricted ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeffreyaven |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5 |
| 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 | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width