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
Using alias in simple view #11068
Comments
STR:
|
The same here with a more simple query
A simple workaround is to prefix table with its database name :
My CH version is 20.6.4.44 |
Old versions had the same issue.
|
Affect last version too
PS: Think 20.7 ans 20.8 is affected too ... |
I got the same error, but when I add the database name, a view was created. |
any news ? |
Still no solution please fix it |
please fix it 🙂 |
please fix it 🙏 |
I try to make a view... for the moment i have this request :
but clickhouse say :
Code: 47, e.displayText() = DB::Exception: Missing columns: 'b.value' 'b.datetime_value' 'b.computed_type' 'b.computed_kind' 'b.computed_id' while processing query: 'SELECT toStartOfHour(b.datetime_value) AS datetime_desc, b.computed_id, b.computed_kind, b.computed_type, sum(b.value) AS value FROM api_client.computed_datum GROUP BY b.computed_id, b.computed_kind, b.computed_type, toStartOfHour(b.datetime_value)', required columns: 'b.computed_id' 'b.computed_kind' 'b.computed_type' 'b.datetime_value' 'b.value', source columns: 'flags' 'computed_type' 'datetime_value' 'uuid' 'value' 'computed_id' 'insert' 'computed_kind' 'EventDateTime' (version 20.4.2.9 (official build))
this is a bug or alias is different from mariadb ?
( PS, if i remove every alias to b , the view work )
The text was updated successfully, but these errors were encountered: