DC
Size: a a a
DC
O
O
ДБ
ЕО
<yandex>
<remote_servers>
<source_cluster>
<shard>
<replica>
<host>localhost</host>
<port>9000</port>
</replica>
</shard>
</source_cluster>
<target_cluster>
<shard>
<replica>
<host>localhost</host>
<port>9000</port>
</replica>
</shard>
</target_cluster>
</remote_servers>
<max_workers>1</max_workers>
<tables>
<table_test1>
<cluster_pull>source_cluster</cluster_pull>
<database_pull>default</database_pull>
<table_pull>test1</table_pull>
<cluster_push>target_cluster</cluster_push>
<database_push>default</database_push>
<table_push>test1_copy</table_push>
<engine>
ENGINE=MergeTree()
ORDER BY EventDate
</engine>
<sharding_key>rand()</sharding_key>
</table_test1>
</tables>
</yandex>
DC
<yandex>
<remote_servers>
<source_cluster>
<shard>
<replica>
<host>localhost</host>
<port>9000</port>
</replica>
</shard>
</source_cluster>
<target_cluster>
<shard>
<replica>
<host>localhost</host>
<port>9000</port>
</replica>
</shard>
</target_cluster>
</remote_servers>
<max_workers>1</max_workers>
<tables>
<table_test1>
<cluster_pull>source_cluster</cluster_pull>
<database_pull>default</database_pull>
<table_pull>test1</table_pull>
<cluster_push>target_cluster</cluster_push>
<database_push>default</database_push>
<table_push>test1_copy</table_push>
<engine>
ENGINE=MergeTree()
ORDER BY EventDate
</engine>
<sharding_key>rand()</sharding_key>
</table_test1>
</tables>
</yandex>
ENGINE=MergeTree()
Partition by tuple()DC
<yandex>
<remote_servers>
<source_cluster>
<shard>
<replica>
<host>localhost</host>
<port>9000</port>
</replica>
</shard>
</source_cluster>
<target_cluster>
<shard>
<replica>
<host>localhost</host>
<port>9000</port>
</replica>
</shard>
</target_cluster>
</remote_servers>
<max_workers>1</max_workers>
<tables>
<table_test1>
<cluster_pull>source_cluster</cluster_pull>
<database_pull>default</database_pull>
<table_pull>test1</table_pull>
<cluster_push>target_cluster</cluster_push>
<database_push>default</database_push>
<table_push>test1_copy</table_push>
<engine>
ENGINE=MergeTree()
ORDER BY EventDate
</engine>
<sharding_key>rand()</sharding_key>
</table_test1>
</tables>
</yandex>
ЕО
ENGINE=MergeTree()
Partition by tuple()2020.09.14 23:20:47.583862 [ 6209 ] {} <Debug> ClusterCopier: Computing destination partition set, executing query: SELECT DISTINCT tuple() AS partition FROM _local.`.read_shard_0.target_cluster.default.test1_copy` ORDER BY partition DESC
2020.09.14 23:20:47.586000 [ 6209 ] {} <Error> ClusterCopier: Will retry: Code: 42, e.displayText() = DB::Exception: Function tuple requires at least one argument., Stack trace (when copying this message, always include the lines below):
ЕО
ЕО
CREATE TABLE default.test1 (
`EventDate` Date,
`CounterID` UInt32,
`UserID` UInt64
)
ENGINE=MergeTree()
ORDER BY EventDate;
INSERT INTO default.test1 FORMAT Values ('2018-01-01', 1, 1);
DC
2020.09.14 23:20:47.583862 [ 6209 ] {} <Debug> ClusterCopier: Computing destination partition set, executing query: SELECT DISTINCT tuple() AS partition FROM _local.`.read_shard_0.target_cluster.default.test1_copy` ORDER BY partition DESC
2020.09.14 23:20:47.586000 [ 6209 ] {} <Error> ClusterCopier: Will retry: Code: 42, e.displayText() = DB::Exception: Function tuple requires at least one argument., Stack trace (when copying this message, always include the lines below):
SELECT DISTINCT tuple() AS partition
CREATE TABLE default.test1 (
EventDate Date,
CounterID UInt32,
UserID UInt64
)
ENGINE=MergeTree() parti
tion by toYYYYMM(EventDate)ORDER BY EventDate;
ЕО
DC
ЕО
ЕО
DT
DC
ЕО
ЕО
MF