pub async fn write_csv_stream( result: DataStreamResult, file_path: &PathBuf, ) -> Result<(), String>
Write DataStreamResult to CSV file