ArroyoSystems / arroyo

Distributed stream processing engine in Rust

Home Page:https://arroyo.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Self Joins not Possible with Alias

akennedy4155 opened this issue · comments

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

image

only support converting column expressions to columns.

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.