Skip to content

Naming row fields without explicit type specification #7758

Answered by martint
EvgSkv asked this question in Q&A
Discussion options

You must be logged in to vote

And here's the implementation: #7774

trino> SELECT typeof((SELECT 1 AS x, 'hello' AS y)), (SELECT 1 AS x, 'hello' AS y);
            _col0             |     _col1
------------------------------+----------------
 row(x integer, y varchar(5)) | {x=1, y=hello}
(1 row)

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@martint
Comment options

@martint
Comment options

@martint
Comment options

@martint
Comment options

Answer selected by EvgSkv
@EvgSkv
Comment options

@johnedquinn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants