ClickhouseBuilder icon indicating copy to clipboard operation
ClickhouseBuilder copied to clipboard

Create/Drop table on cluster

Open chelsEg opened this issue 2 years ago • 0 comments

Hello!

Now, where I want create table on cluster with this code:

$this->builder
            ->onCluster('test')
            ->createTableIfNotExists('test', 'ReplicatedMergeTree ORDER BY number', [
                'number' => 'UInt64',
            ]);

I have error, because suffix ON CLUSTER test can't added.

This also applies to the DROP TABLE query.

chelsEg avatar Jun 17 '22 13:06 chelsEg