doltgresql icon indicating copy to clipboard operation
doltgresql copied to clipboard

ROW keyword for tuples not yet supported

Open forhsd opened this issue 7 months ago • 1 comments

  1. execute the following SQL report error:ERROR: ROW keyword for tuples not yet supported
  2. can execute normally in Postgres database
  3. Doltgres version 0.50.0

select row(p) from users p

forhsd avatar Apr 24 '25 10:04 forhsd

Hi @forhsd, thanks for trying out doltgres and reporting this gap. We'll start digging into support for the ROW keyword and get this feature working.

Since ROW can be used in a few ways... are you specifically looking to support syntax like below, or is there a different usage you'd like us to prioritize?

SELECT * FROM employees
WHERE ROW(first_name, last_name) = ROW('John', 'Doe');

fulghum avatar Apr 24 '25 17:04 fulghum

Hi @forhsd , thanks again for the issues. We'd love to learn about your use case too. Feel free to email me or swing by our Discord if you'd like to share.

bpf120 avatar Apr 29 '25 21:04 bpf120

Hi @forhsd, I've just merged in initial support for record types and the ROW() constructor function. Thanks for taking the time to submit this feature request. 🙏

There are still some uses of records that don't match Postgres' behavior (e.g. support for using ROW() with a table alias to wrap table rows). Don't hesitate to let us know if you hit any issues with records or ROW() or anything else in Doltgres and we'll be happy to dig in and help.

fulghum avatar May 20 '25 20:05 fulghum