v.22.4Experimental Feature
Support Schema Inference for Object Type in JSONEachRow Format
Support schema inference for typeObjectin formatJSONEachRow. Allow to convert columns of typeMapto columns of typeObject. #35629 (Anton Popov).
Why it matters
This feature allows ClickHouse to automatically detect and infer schemas containing theObject type when importing data with the JSONEachRow format. Additionally, it makes it possible to convert existing Map type columns to the more versatile Object type, enhancing flexibility in handling nested or semi-structured data.How to use it
Simply use theJSONEachRow format when importing data that includes Object-typed fields to benefit from schema inference. To convert a column from Map type to Object type, utilize appropriate ALTER TABLE commands or cast operations within queries.