Repository navigation
Conversation
|
Thanks! Tests are missing |
|
Thanks for the feedback, @fm4v. |
|
Object('json') data type was deprecated for a long time and now removed. Original task is about adding support for JSON data type. https://clickhouse.com/docs/sql-reference/data-types/newjson |
|
Thanks for the clarification. I misunderstood the scope and implemented support for the deprecated Object type, while the task is to support the new JSON data type. I’ll rework the approach to add native JSON support in GenerateRandom directly and open a new PR for that. I’ll close this PR. |
Related to #92360
Changelog category :
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
GenerateRandom now supports generation of structured Object (JSON-like) values for benchmarking and testing.
Documentation entry for user-facing changes
Description
This change adds internal support for generating structured Object (JSON-like) values in the GenerateRandom table engine.
It enables generation of nested objects, arrays, and scalar values for benchmarking and testing, and removes the previous “not implemented for Object” error.
User-facing configuration of JSON generation parameters (such as nesting depth, key count, and null ratio) will be added in a follow-up PR.
Motivation:
Parameters:
Example use: