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

SQL row_to_json and wildcard select #8529

Open
aljazerzen opened this issue Mar 31, 2025 · 0 comments
Open

SQL row_to_json and wildcard select #8529

aljazerzen opened this issue Mar 31, 2025 · 0 comments
Assignees
Labels

Comments

@aljazerzen
Copy link
Contributor

This should work:

select row_to_json(*) from (select 1 as a, 'b' as b) t;

... but it does not because we compile it to something like this:

select row_to_json(t.a) from (...) t

This is wrong because it discards all but the first column (not even raising an error!)

@aljazerzen aljazerzen added the sql label Mar 31, 2025
@aljazerzen aljazerzen self-assigned this Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant