v.24.6Performance Improvement

Optimize Parquet Writer Memory Usage in Single-Threaded Mode

Use the allocated memory size to calculate the row group size and reduce the peak memory of the parquet writer in the single-threaded mode. #64424 (LiuNeng).