v.23.2Improvement
Add Map, IPv4, and IPv6 support in generateRandom for testing
Add support for Map, IPv4 and IPv6 types in generateRandom. Mostly useful for testing. #45785 (Raúl Marín).
Why it matters
This feature addresses the need for generating random test data for complex and specific data types such asMap and IP address formats (IPv4 and IPv6). It improves testing capabilities by allowing users to easily produce random sample data for these types without manual data preparation.How to use it
Use thegenerateRandom function in your queries or tests specifying columns with Map, IPv4, or IPv6 types. The function will automatically generate random values for those types for testing purposes.