fix: StorageNull supports subcolumns

This commit is contained in:
wxybear 2023-10-22 16:24:01 +08:00
parent 1be4ff229b
commit 53a49164d6

View File

@ -46,6 +46,8 @@ public:
bool supportsParallelInsert() const override { return true; } bool supportsParallelInsert() const override { return true; }
bool supportsSubcolumns() const override { return true; }
SinkToStoragePtr write(const ASTPtr &, const StorageMetadataPtr & metadata_snapshot, ContextPtr, bool) override SinkToStoragePtr write(const ASTPtr &, const StorageMetadataPtr & metadata_snapshot, ContextPtr, bool) override
{ {
return std::make_shared<NullSinkToStorage>(metadata_snapshot->getSampleBlock()); return std::make_shared<NullSinkToStorage>(metadata_snapshot->getSampleBlock());