zio-sql icon indicating copy to clipboard operation
zio-sql copied to clipboard

support VALUES as a table we can join on

Open phderome opened this issue 5 years ago • 1 comments

SELECT a.name, v.address FROM (VALUES('101 Main St City USA', 'foo', 'bar'), ('24 Sussex Drive Ottawa Canada', 'foo2', 'bar2')) vals(address, foo, bar) CROSS JOIN A

with any kinds of joins being supported as usual. So (VALUES) looks like a subquery (SELECT ...).

phderome avatar Sep 08 '20 13:09 phderome

I think this is already supported via the literal read, but we can add a test too.

jdegoes avatar Sep 08 '20 14:09 jdegoes