Nested数据类型使用
待写。
CSV http方式灌数命令
1 | cat da.csv | curl 'http://10.185.217.47:8123/?user=user&password=password&query=INSERT%20INTO%20table%20FORMAT%20CSV' |
库、表操作
库,表的创建,删除等操作加上on cluster cluster1
说明,只在一个节点上操作即可实现集群同步。
相关问题
问题删除分区时:
1 | Password required for user default., e.what() = DB::Exception." |
解决https://github.com/yandex/ClickHouse/issues/4762:
原因:
1 | Generally, when you do some DDL on non-leader replica it forwards the request to a leader, and during that forwarding "default" passwordless user was used. |
解决:选择所有的主副本删除即可,zookeeper会自动同步删除子副本的数据。