We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
So this is very oddly specific, but it is pretty common in a lot of the tpc-ds queries.
select count(tbl_3.val3) from tbl_1 join tbl_2 on tbl_1.id = tbl_2.id, tbl_3 where tbl_1.id = tbl_3.id group by tbl_2.val2
tbl_1 = daft.from_pydict({ 'id': [1,2,3], 'val': ['a','b','c'] }) tbl_2 = daft.from_pydict({ 'id': [1,2,4], 'val2': ['x','y','z'] }) tbl_3 = daft.from_pydict({ 'id': [1,2,5], 'val3': ['m','n','o'] }) tbl_4 = daft.from_pydict({ 'id': [1,3,6], 'val4': ['p','q','r'] }) daft.sql(""" select count(tbl_3.val3), tbl_2.val2 from tbl_1 join tbl_2 on tbl_1.id = tbl_2.id, tbl_3 where tbl_1.id = tbl_3.id group by tbl_2.val2 """).collect()
results in InvalidSQLException: Table not found: tbl_2
InvalidSQLException: Table not found: tbl_2
should have the same output as other sql engines duckdb:
┌───────────────────┬─────────┐ │ count(tbl_3.val3) │ val2 │ │ int64 │ varchar │ ├───────────────────┼─────────┤ │ 1 │ y │ │ 1 │ x │ └───────────────────┴─────────┘
SQL
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
So this is very oddly specific, but it is pretty common in a lot of the tpc-ds queries.
To Reproduce
results in
InvalidSQLException: Table not found: tbl_2
Expected behavior
should have the same output as other sql engines
duckdb:
Component(s)
SQL
Additional context
No response
The text was updated successfully, but these errors were encountered: