Merge pull request #72314 from ClickHouse/backport/24.9/72278

Backport #72278 to 24.9: Fix race in `ColumnDynamic::dumpStructure()`
This commit is contained in:
robot-ch-test-poll4 2024-11-23 00:09:52 +01:00 committed by GitHub
commit f00ff8fc95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 0 deletions

View File

@ -310,6 +310,8 @@ public:
variant_column_ptr = assert_cast<ColumnVariant *>(variant_column.get());
}
void forEachSubcolumn(ColumnCallback callback) const override { callback(variant_column); }
void forEachSubcolumnRecursively(RecursiveMutableColumnCallback callback) override
{
callback(*variant_column);

View File

@ -0,0 +1,7 @@
SET join_algorithm = 'parallel_hash';
SET allow_experimental_dynamic_type = 1;
DROP TABLE IF EXISTS t0;
CREATE TABLE t0 (c0 Tuple(c1 Int,c2 Dynamic)) ENGINE = Memory();
SELECT 1 FROM t0 tx JOIN t0 ty ON tx.c0 = ty.c0;
DROP TABLE t0;