-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
Not found column xxx in block. (NOT_FOUND_COLUMN_IN_BLOCK) version 22.9.2.7 #41964
Labels
st-hold
We've paused the work on issue for some reason
Comments
Maybe related: #3140 |
Maybe related: #13274 |
There is no column |
@den-crane Hello Denny, I corrected the example, please review one more time. Sorry for the mistake. Thanks. |
Right, because of aliased tables. CREATE TABLE l (y String)Engine Memory;
CREATE TABLE r (d Date, y String, ty UInt16 MATERIALIZED toYear(d)) Engine Memory;
select * from l L left join r R on L.y = R.y where R.ty >= 2019
DB::Exception: Not found column ty in block. (NOT_FOUND_COLUMN_IN_BLOCK)
select * from l left join r on l.y = r.y where r.ty >= 2019
OK try SELECT *
FROM ab_12_aaa
LEFT JOIN ab_12_bbb ON (ab_12_aaa.id = ab_12_bbb.id) AND (ab_12_bbb._year = ab_12_aaa._year)
WHERE ab_12_bbb.theyear >= 2019 |
Proven to be fixed by Analyzer. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Query:
How to reproduce
tables:
Expected behavior
Query runs.
Error message and/or stacktrace
DB::Exception: Not found column theyear in block. (NOT_FOUND_COLUMN_IN_BLOCK) (version 22.9.2.7 (official build))
The text was updated successfully, but these errors were encountered: