v.20.12Improvement
Turn Off Parallel Parsing When Memory is Insufficient
Turn off parallel parsing when there is no enough memory for all threads to work simultaneously. Also there could be exceptions like "Memory limit exceeded" when somebody will try to insert extremely huge rows (> min_chunk_bytes_for_parallel_parsing), because each piece to parse has to be independent set of strings (one or more). #16721 (Nikita Mikhaylov).
Why it matters
This feature addresses issues where parallel parsing consumes more memory than available, which can lead to "Memory limit exceeded" errors, especially when inserting extremely large rows that exceed themin_chunk_bytes_for_parallel_parsing threshold. By turning off parallel parsing under low memory conditions, it ensures stable query execution and avoids crashes caused by memory overconsumption.