mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #55912 from wxybear/fix/storage_null_supports_subcolumns
fix: StorageNull supports subcolumns
This commit is contained in:
commit
cb63b07e89
@ -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());
|
||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user