v.23.9Improvement
Parse JSON as JSONEachRow when metadata parsing fails
Parse data inJSONformat asJSONEachRowif failed to parse metadata. It will allow to read files with.jsonextension even if real format is JSONEachRow. Closes #45740. #54405 (Kruglov Pavel).
Why it matters
This feature solves the issue where files with a.json extension, which are formatted as JSONEachRow, fail to be read correctly due to metadata parsing errors. It improves user experience by automatically handling such cases without requiring manual format specification, ensuring robust and flexible JSON data ingestion.How to use it
Users can simply read files with.json extension as usual without manually specifying the input format. If the metadata parsing fails, ClickHouse will automatically try to parse the data using JSONEachRow format, requiring no additional configuration.