[go: up one dir, main page]

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

Document field_names_in_json_cast_enabled #23540

Closed
kaikalur opened this issue Aug 28, 2024 · 0 comments · Fixed by #23551
Closed

Document field_names_in_json_cast_enabled #23540

kaikalur opened this issue Aug 28, 2024 · 0 comments · Fixed by #23551
Assignees
Labels

Comments

@kaikalur
Copy link
Contributor

We have this awesome session param (default to false don't know why :( ). @steveburnett - can you fix row to json cast documentation to talk about this session param. It will basically preserve the row field named as json field names. This part:

SELECT CAST(CAST(ROW(123, 'abc', true) AS ROW(v1 BIGINT, v2 VARCHAR, v3 BOOLEAN)) AS JSON); -- JSON '[123,"abc",true]'

in json.html. Add one more line about this session param and it will show field names like this:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants