Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pg] support of row_to_json over table record #2321

Closed
Tracked by #1722
vitstn opened this issue Feb 28, 2024 · 1 comment · Fixed by #2350
Closed
Tracked by #1722

[pg] support of row_to_json over table record #2321

vitstn opened this issue Feb 28, 2024 · 1 comment · Fixed by #2350
Assignees
Labels

Comments

@vitstn
Copy link
Collaborator

vitstn commented Feb 28, 2024

minimal example

--!syntax_pg
SELECT pg_catalog.row_to_json(t) AS chart_data
FROM (select 1 as x) t

@vitstn vitstn added the area/pg label Feb 28, 2024
@vitstn vitstn self-assigned this Feb 28, 2024
@vitstn vitstn mentioned this issue Feb 28, 2024
8 tasks
@vitstn vitstn changed the title support of row_to_json over table record [pg] support of row_to_json over table record Feb 28, 2024
@vitstn
Copy link
Collaborator Author

vitstn commented Feb 28, 2024

aliases are considered only if no columns were matched

SELECT pg_catalog.row_to_json(x) AS chart_data
FROM (select 1 as x,2 as y) x

@vitstn vitstn linked a pull request Feb 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant