v.23.1Improvement

Use Insertion Table Structure in generateRandom Function

Use structure from insertion table in generateRandom without arguments. #45239 (Kruglov Pavel).
The generateRandom function now supports inferring the output structure directly from the insertion table when called without arguments.

Why it matters

This feature simplifies data insertion workflows by automatically using the target table's structure for random data generation, eliminating the need to explicitly specify the function's output schema. It enhances usability and reduces errors during testing or data population.

How to use it

When inserting data, call generateRandom() without any arguments. The function will automatically adopt the structure of the insertion table to generate compatible random data.