Self Joins not Possible with Alias
akennedy4155 opened this issue · comments
Alex Kennedy commented
This query which performs a self join using an alias:
select nexmark_50000.person as seller_record
from nexmark_50000
join nexmark_50000 as t2
on nexmark_50000.auction.seller = t2.person.id
where nexmark_50000.person is not null;
does not parse correctly from DF SQL to syn expr
only support converting column expressions to columns.
Jackson Newhouse commented
It's not really the aliasing, but rather that you're trying to join on a subfield of a struct. The call is being made here. Right now that is partially done so we can guarantee there is a valid column name for the key's struct, but we will extend join capabilities in the future.