Title: [BUG] · Issue #623 · stackql/stackql · GitHub
Open Graph Title: [BUG] · Issue #623 · stackql/stackql
X Title: [BUG] · Issue #623 · stackql/stackql
Description: Describe the bug The || string concatenation operator fails when used in a query against a view, but works correctly against a resource. The error returned is: query rewriting for indirection: cannot find col = '' To Reproduce Run the fo...
Open Graph Description: Describe the bug The || string concatenation operator fails when used in a query against a view, but works correctly against a resource. The error returned is: query rewriting for indirection: cann...
X Description: Describe the bug The || string concatenation operator fails when used in a query against a view, but works correctly against a resource. The error returned is: query rewriting for indirection: cann...
Opengraph URL: https://github.com/stackql/stackql/issues/623
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]","articleBody":"**Describe the bug**\nThe `||` string concatenation operator fails when used in a query against a view, but works correctly against a resource. The error returned is:\n```\nquery rewriting for indirection: cannot find col = ''\n```\n\n**To Reproduce**\n\nRun the following against the `homebrew` provider (free, no auth required):\n```sql\nSELECT \n 'homebrew://' || formula_name as formula_uri\nFROM \n homebrew.formula.vw_info\nWHERE formula_name = 'stackql';\n```\n\nThe same query pattern works correctly against a resource:\n```sql\nSELECT \n 'homebrew://' || name as formula_uri\nFROM \n homebrew.formula.formula\nWHERE formula_name = 'stackql';\n```\n\n**Expected behavior**\n\nBoth queries return a single row with `formula_uri = 'homebrew://stackql'`.\n\n**Additional context**\n\nAssigned to @claude for investigation and fix.\n\n- Fix should be isolated to the query rewriter's indirection/column resolution logic - the bug is that string literal operands on the left side of `||` are not being resolved correctly during view expansion\n- Fix should touch as few files as possible with no refactoring of adjacent logic\n- Add both queries above as robot framework regression tests to the existing homebrew test suite, with the resource query as baseline and the view query as the regression guard","author":{"url":"https://github.com/jeffreyaven","@type":"Person","name":"jeffreyaven"},"datePublished":"2026-03-17T07:56:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/623/stackql/issues/623"}
| 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:bafe264b-4fba-fb5a-004b-032377619b3d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A790:3BD8F2:10BEF2A:16A3927:6A4EEE86 |
| html-safe-nonce | 9cc6ad20c065bd66fa03cf6465d77232a5af7312ffdcd12452dba56356278ebf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzkwOjNCRDhGMjoxMEJFRjJBOjE2QTM5Mjc6NkE0RUVFODYiLCJ2aXNpdG9yX2lkIjoiODkyOTA1OTcwMTAzMjY3Njk5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fa8eb58e2270e530aaecf2919208dad3755921a5add72f39d411b783503a6478 |
| hovercard-subject-tag | issue:4086842876 |
| 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/623/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bdbc89c94c4da6a32976376cae0cf5b8746b9459b6a4e4b6435cf2597ba91e73/stackql/stackql/issues/623 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bdbc89c94c4da6a32976376cae0cf5b8746b9459b6a4e4b6435cf2597ba91e73/stackql/stackql/issues/623 |
| og:image:alt | Describe the bug The || string concatenation operator fails when used in a query against a view, but works correctly against a resource. The error returned is: query rewriting for indirection: cann... |
| 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 | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| 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 | 00d04d6b867d2f16ab50bebae8ccc56e07c8988b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width