trino icon indicating copy to clipboard operation
trino copied to clipboard

Allow field name declaration in ROW literal

Open dain opened this issue 7 months ago • 16 comments

Description

Add support for row(a 1, b 2) instead of the much more complex cast(row(1, 2) as row(a integer, b integer)). The old syntax is particularly annoying because you have to repeat the types for the fields.

Release notes

(X) Release notes are required, with the following suggested text:

## General
* Allow field name declaration in ROW literal.  For example, `row(a 1, b 2)` is now legal. ({issue}`issuenumber`)

dain avatar Mar 09 '25 20:03 dain