v.23.2Improvement
Support for LowCardinality Data Types in generateRandom Table Function
ThegenerateRandomtable function and the engine now supportLowCardinalitydata types. This is useful for testing, for example you can writeINSERT INTO table SELECT * FROM generateRandom() LIMIT 1000. This is needed to debug #45590. #45661 (Alexey Milovidov).
Why it matters
This feature enables generating random data withLowCardinality column types, which is useful for testing and debugging scenarios, such as reproducing and investigating issues like #45590.How to use it
Use thegenerateRandom table function as before, but now it supports LowCardinality columns. For example:INSERT INTO table SELECT * FROM generateRandom() LIMIT 1000This will generate random data that properly utilizes
LowCardinality types.