mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Support parallel INSERT for more table engines
This commit is contained in:
parent
65ee7dcb18
commit
2a09aa53cc
@ -65,6 +65,8 @@ public:
|
||||
size_t max_block_size,
|
||||
unsigned num_streams) override;
|
||||
|
||||
bool supportsParallelInsert() const override { return true; }
|
||||
|
||||
BlockOutputStreamPtr write(const ASTPtr & query, const StorageMetadataPtr & /*metadata_snapshot*/, const Context & context) override;
|
||||
|
||||
void startup() override;
|
||||
|
@ -79,6 +79,8 @@ public:
|
||||
size_t max_block_size,
|
||||
unsigned num_streams) override;
|
||||
|
||||
bool supportsParallelInsert() const override { return true; }
|
||||
|
||||
BlockOutputStreamPtr write(const ASTPtr & query, const StorageMetadataPtr & /*metadata_snapshot*/, const Context & context) override;
|
||||
|
||||
/// Removes temporary data in local filesystem.
|
||||
|
@ -37,6 +37,8 @@ public:
|
||||
size_t max_block_size,
|
||||
unsigned num_streams) override;
|
||||
|
||||
bool supportsParallelInsert() const override { return true; }
|
||||
|
||||
BlockOutputStreamPtr write(const ASTPtr & query, const StorageMetadataPtr & metadata_snapshot, const Context & context) override;
|
||||
|
||||
void drop() override;
|
||||
|
@ -35,6 +35,8 @@ public:
|
||||
std::make_shared<NullSource>(metadata_snapshot->getSampleBlockForColumns(column_names, getVirtuals(), getStorageID())));
|
||||
}
|
||||
|
||||
bool supportsParallelInsert() const override { return true; }
|
||||
|
||||
BlockOutputStreamPtr write(const ASTPtr &, const StorageMetadataPtr & metadata_snapshot, const Context &) override
|
||||
{
|
||||
return std::make_shared<NullBlockOutputStream>(metadata_snapshot->getSampleBlock());
|
||||
|
Loading…
Reference in New Issue
Block a user