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
clickhouse adapts to postgresql #56729
Comments
ch version: 23.4.2.11 |
Try to replace "and 1" with "and true", note that newer version after 22 can deal with boolean type. |
full stack trace plz |
Could you also please provide SHOW CREATE for |
DROP TABLE IF EXISTS sys_nic; DROP TABLE IF EXISTS proxy.sys_nic; |
I met the same problem |
It should have been fixed in #56456 recently. |
When I use the ch table and the table imported by the PostgreSql table (pg_algo_input_customer) engine as views, I filter the fields in pg_algo_input_customer. Clickhouse embedded the condition in the pg_algo_input_customer table sql as where 1, but the syntax of where 1 is not supported in pgsql, how do I make this view sql valid using the pg table engine?
The sql statement:
select date, customer, level
from pg_algo_input_customer
where level != 'ZZ'.
The view contains the 'level' above, And when i used 'level' column, ch embeds 'and 1' into sql: WHERE ("level" != 'ZZ') AND 1), then throw this error 'std::exception. Code: 1001, type: pqxx::sql_error, e.what() = ERROR: argument of AND must be type boolean, not type integer'.
Tasks
The text was updated successfully, but these errors were encountered: