-
Notifications
You must be signed in to change notification settings - Fork 8.3k
experimental MaterializeMySQL in 20.8 cannot synchronize "create table" commands #14114
Description
i use
my steps
- create a new database ckdb on mysql, then create table t1(a int, primary key(a)); and insert some rows
- SET allow_experimental_database_materialize_mysql=1; at clickhouse,
- CREATE DATABASE ckdb ENGINE = MaterializeMySQL('127.0.0.1:3306', 'ckdb', 'root', 'A123b_456');
- use ckdb and select * from t1 ok
- create table dzm as select * from others in mysql ----> cannot see dzm in clickhouse, but if select * from t1, reports
Code: 48. DB::Exception: Received from localhost:9000. DB::Exception: The ckdb.dzm cannot be materialized, because there is no primary keys..
- create table t2(a int,b int primary a);----> cannot see t2 in clickhouse, , but if select * from t1, reports
Code: 44. DB::Exception: Received from localhost:9000. DB::Exception: Sorting key cannot contain nullable columns.
7. if i drop ckdb and recreate it, all tables can be selected
7.if there are some 'bad' tables in a database, all tables in that database cannot be selected
Make sure to check documentation https://clickhouse.yandex/docs/en/ first. If the question is concise and probably has a short answer, asking it in Telegram chat https://telegram.me/clickhouse_en is probably the fastest way to find the answer. For more complicated questions, consider asking them on StackOverflow with "clickhouse" tag https://stackoverflow.com/questions/tagged/clickhouse
If you still prefer GitHub issues, remove all this text and ask your question here.