CREATETABLEdemo_loan_01568ONCLUSTERtest_cluster_two_shards_different_databases(`id`Int64COMMENT'id',`date_stat`DateCOMMENT'date of stat',`customer_no`StringCOMMENT'customer no',`loan_principal`Float64COMMENT'loan principal')ENGINE=ReplacingMergeTree()ORDERBYidPARTITIONBYtoYYYYMM(date_stat);-- { serverError 371 }
SETdistributed_ddl_output_mode='throw';
CREATETABLEshard_0.demo_loan_01568ONCLUSTERtest_cluster_two_shards_different_databases(`id`Int64COMMENT'id',`date_stat`DateCOMMENT'date of stat',`customer_no`StringCOMMENT'customer no',`loan_principal`Float64COMMENT'loan principal')ENGINE=ReplacingMergeTree()ORDERBYidPARTITIONBYtoYYYYMM(date_stat);
CREATETABLEshard_1.demo_loan_01568ONCLUSTERtest_cluster_two_shards_different_databases(`id`Int64COMMENT'id',`date_stat`DateCOMMENT'date of stat',`customer_no`StringCOMMENT'customer no',`loan_principal`Float64COMMENT'loan principal')ENGINE=ReplacingMergeTree()ORDERBYidPARTITIONBYtoYYYYMM(date_stat);