Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL to DDlog compiler cannot compile JOINs with aliases with the same name as the original identifier #1129

Open
amytai opened this issue Dec 1, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@amytai
Copy link
Contributor

amytai commented Dec 1, 2021

Suppose you have the following tables:

create table t1(column1 integer, column2 boolean)
create table t2(column1 integer)

The following view fails to compile:

create view v0 as SELECT DISTINCT t1.column1 as new_column 
                from t1 as t1 
                JOIN t2 as alias2 ON t1.column1 = alias2.column1

with the following exception:

com.vmware.ddlog.translator.TranslationException: Column 't1.column1' not in one of the joined relation
t1.column1 line: 1 column: 94
@mihaibudiu mihaibudiu self-assigned this Dec 1, 2021
@mihaibudiu mihaibudiu added the bug Something isn't working label Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants