Merge pull request #55912 from wxybear/fix/storage_null_supports_subcolumns

fix: StorageNull supports subcolumns
This commit is contained in:
Kruglov Pavel 2023-10-24 14:03:46 +02:00 committed by GitHub
commit cb63b07e89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 0 deletions

View File

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

View File

@ -0,0 +1,6 @@
CREATE TABLE null_02902 (t Tuple(num Int64, str String)) ENGINE = Null;
SELECT t FROM null_02902;
SELECT tupleElement(t, 'num') FROM null_02902;
SELECT t.num, t.str FROM null_02902;
DROP TABLE null_02902;