| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3cc47530-724e-2828-fea4-f9f89edd6fbf |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 97FA:311640:26AACD7:3122F46:6B01973C |
| html-safe-nonce | b0b8d64043df06829661990821a58271d767193d3920cff71f3baa965e19e550 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0ZBOjMxMTY0MDoyNkFBQ0Q3OjMxMjJGNDY6NkIwMTk3M0MiLCJ2aXNpdG9yX2lkIjoiNDczNTc1ODcxMzM0Njk1NTA2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4f8543779c75a665e203b4c63d83316270f3761cddb69a98afbfdbaee01057f6 |
| hovercard-subject-tag | pull_request:2225628996 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/sqlc-dev/sqlc/pull/3739/files |
| twitter:image | https://avatars.githubusercontent.com/u/1897818?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1897818?s=400&v=4 |
| og:image:alt | Trying to solve #3710
JSON traversal operator on selected columns
Based on postgresql docs, operator ->> and #>> should return string, and since this is JSON and it could have null valu... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/sqlc-dev/sqlc/pull/3739/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F3739%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsqlc-dev%2Fsqlc%2Fpull%2F3739%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=sqlc-dev%2Fsqlc |
| Reload | https://github.com/sqlc-dev/sqlc/pull/3739/files |
| Reload | https://github.com/sqlc-dev/sqlc/pull/3739/files |
| Reload | https://github.com/sqlc-dev/sqlc/pull/3739/files |
| sqlc-dev | https://github.com/sqlc-dev |
| sqlc | https://github.com/sqlc-dev/sqlc |
| Code | https://github.com/sqlc-dev/sqlc |
| Issues600 (600) | https://github.com/sqlc-dev/sqlc/issues |
| Pull requests132 (132) | https://github.com/sqlc-dev/sqlc/pulls |
| Discussions | https://github.com/sqlc-dev/sqlc/discussions |
| Actions | https://github.com/sqlc-dev/sqlc/actions |
| Projects | https://github.com/sqlc-dev/sqlc/projects |
| Security and quality | https://github.com/sqlc-dev/sqlc/security |
| Insights | https://github.com/sqlc-dev/sqlc/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fsqlc-dev%2Fsqlc%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fsqlc-dev%2Fsqlc%2Fissues%2Fnew%2Fchoose |
| swallowstalker | https://github.com/swallowstalker |
| sqlc-dev:main | https://github.com/sqlc-dev/sqlc/tree/main |
| swallowstalker:text-alias | https://github.com/swallowstalker/sqlc/tree/text-alias |
|
Conversation
12
| https://github.com/sqlc-dev/sqlc/pull/3739 |
|
Commits
11
| https://github.com/sqlc-dev/sqlc/pull/3739/commits |
|
Checks
0
| https://github.com/sqlc-dev/sqlc/pull/3739/checks |
|
Files changed
| https://github.com/sqlc-dev/sqlc/pull/3739/files |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739/files |
|
fix(postgresql): set query result column nullable if selected column contains json operator or null value in case expression
| https://github.com/sqlc-dev/sqlc/pull/3739/files#top |
|
Show all changes
11 commits
| https://github.com/sqlc-dev/sqlc/pull/3739/files |
|
9ea4ce3
feat: adding nullable text if selected column is json operator and ca…
swallowstalker Dec 10, 2024
| https://github.com/sqlc-dev/sqlc/pull/3739/commits/9ea4ce36057388dbc4bdcf34ab68697261807bff |
|
25274e8
test: fix fmt
swallowstalker Dec 10, 2024
| https://github.com/sqlc-dev/sqlc/pull/3739/commits/25274e88cbe21328480a13749b241a5528851abe |
|
f61bfcc
test: delete fourth column
swallowstalker Dec 10, 2024
| https://github.com/sqlc-dev/sqlc/pull/3739/commits/f61bfcc6721e6c71786bbb6f64ad039c74a2ccb9 |
|
049fb49
test: avoid test format because the reversed query from raw statement…
swallowstalker Dec 10, 2024
| https://github.com/sqlc-dev/sqlc/pull/3739/commits/049fb49304b7a7b5fda2448469fbf9b7e210ed13 |
|
ebc8a77
feat: case expr handling and json operator handling
swallowstalker Dec 12, 2024
| https://github.com/sqlc-dev/sqlc/pull/3739/commits/ebc8a772cff26624f985b77196371803887bdfda |
|
f154a2f
fix: change managed-db to base
swallowstalker Dec 12, 2024
| https://github.com/sqlc-dev/sqlc/pull/3739/commits/f154a2fbf450bfa673e71fafda93086234ee90e2 |
|
822e73f
test: add null::text as default case expr
swallowstalker Dec 13, 2024
| https://github.com/sqlc-dev/sqlc/pull/3739/commits/822e73fb30eaca38b41f8b585da4deaee0522ad5 |
|
e7ddabf
test: changing author email
swallowstalker Dec 13, 2024
| https://github.com/sqlc-dev/sqlc/pull/3739/commits/e7ddabf111cb76ac7999fb01f1faaf8c4f404000 |
|
d0cbfe4
Merge branch 'main' into text-alias
swallowstalker Dec 19, 2024
| https://github.com/sqlc-dev/sqlc/pull/3739/commits/d0cbfe473ddce2e0e4f87a672265582c345a744f |
|
409d2fb
fix: change type precedence auto-selection to data type any, to allow…
swallowstalker Dec 19, 2024
| https://github.com/sqlc-dev/sqlc/pull/3739/commits/409d2fbdf81ebb483ed9ba58cd935b3d4e4119f1 |
|
19ab642
test: uncommitted test case for GetNullable2G
swallowstalker Dec 19, 2024
| https://github.com/sqlc-dev/sqlc/pull/3739/commits/19ab64230cc3c03f6e29eb96ecbf8cada50df75d |
|
Clear filters
| https://github.com/sqlc-dev/sqlc/pull/3739/files |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739/files |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739/files |
|
output_columns.go
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061 |
|
issue.md
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-b489b57ef23bcbdf3255d9dd3d42ab26326c9cdba7977976784eb8c8bab7bfe3 |
|
exec.json
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-c13da38c3e210518877c219a21cdb1ad50723de67b2f361299a042330abee9d7 |
|
db.go
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-d0fc529ad88ae6f9693092aab08f3de58374bb7fa12ae47d085cc2ff76c41982 |
|
models.go
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-603639316c5a316d0f7b646c7432991c5c98b784dfbca137b87bfe0c02cd853b |
|
query.sql.go
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-cbe35806176a73c9668c4e4db284b685018700ffba5ef88a7305d8b40868cd63 |
|
query.sql
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-4d28d2be93ce622edfc9da96baa58da5bae23fd4915c09cf4c8f3769d94db8c1 |
|
schema.sql
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-64a0a7f16c4880c1162bdd1b29ab44a47e1496ce91fee2ea31475ac5c74a6ef8 |
|
sqlc.yaml
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-ba34734f67c2b554bd8af4848631af62fa75b0a1f794b942d94cf67834ccedfa |
|
operator.go
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-2f63e3ac259e41d484627e82f04bcc0b37463078f40da37cc70822001d52347b |
| internal/compiler/output_columns.go | https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061 |
|
View file
| https://github.com/sqlc-dev/sqlc/blob/19ab64230cc3c03f6e29eb96ecbf8cada50df75d/internal/compiler/output_columns.go |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/sqlc-dev/sqlc/pull/3739/{{ revealButtonHref }} |
|
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061 |
|
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061 |
| swallowstalker | https://github.com/swallowstalker |
| Dec 19, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739/files#r1891532476 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739/files |
|
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061 |
|
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061 |
|
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061 |
|
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061 |
|
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061 |
|
| https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-10352986f0bc3f9bd887ba90e50c3ff0d93f284b24a9a8c059f1f1bc0aaba061 |
| swallowstalker | https://github.com/swallowstalker |
| Dec 19, 2024 | https://github.com/sqlc-dev/sqlc/pull/3739/files#r1891530078 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739/files |
| internal/endtoend/testdata/json_traversal_as_select_expr_with_type_cast/issue.md | https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-b489b57ef23bcbdf3255d9dd3d42ab26326c9cdba7977976784eb8c8bab7bfe3 |
|
View file
| https://github.com/sqlc-dev/sqlc/blob/19ab64230cc3c03f6e29eb96ecbf8cada50df75d/internal/endtoend/testdata/json_traversal_as_select_expr_with_type_cast/issue.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/sqlc-dev/sqlc/pull/3739/{{ revealButtonHref }} |
| ...l/endtoend/testdata/json_traversal_as_select_expr_with_type_cast/postgresql/pgx/exec.json | https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-c13da38c3e210518877c219a21cdb1ad50723de67b2f361299a042330abee9d7 |
|
View file
| https://github.com/sqlc-dev/sqlc/blob/19ab64230cc3c03f6e29eb96ecbf8cada50df75d/internal/endtoend/testdata/json_traversal_as_select_expr_with_type_cast/postgresql/pgx/exec.json |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/sqlc-dev/sqlc/pull/3739/{{ revealButtonHref }} |
| ...al/endtoend/testdata/json_traversal_as_select_expr_with_type_cast/postgresql/pgx/go/db.go | https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-d0fc529ad88ae6f9693092aab08f3de58374bb7fa12ae47d085cc2ff76c41982 |
|
View file
| https://github.com/sqlc-dev/sqlc/blob/19ab64230cc3c03f6e29eb96ecbf8cada50df75d/internal/endtoend/testdata/json_traversal_as_select_expr_with_type_cast/postgresql/pgx/go/db.go |
|
Open in desktop
| https://desktop.github.com |
| how customized files appear on GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739/files |
| ...ndtoend/testdata/json_traversal_as_select_expr_with_type_cast/postgresql/pgx/go/models.go | https://github.com/sqlc-dev/sqlc/pull/3739/files#diff-603639316c5a316d0f7b646c7432991c5c98b784dfbca137b87bfe0c02cd853b |
|
View file
| https://github.com/sqlc-dev/sqlc/blob/19ab64230cc3c03f6e29eb96ecbf8cada50df75d/internal/endtoend/testdata/json_traversal_as_select_expr_with_type_cast/postgresql/pgx/go/models.go |
|
Open in desktop
| https://desktop.github.com |
| how customized files appear on GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739/files |
| Please reload this page | https://github.com/sqlc-dev/sqlc/pull/3739/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |