You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/11 20:20:09 UTC

[GitHub] [arrow-datafusion] andygrove commented on a diff in pull request #3801: Stop ignoring errors when writing DataFrame to csv, parquet, json

andygrove commented on code in PR #3801:
URL: https://github.com/apache/arrow-datafusion/pull/3801#discussion_r992742928


##########
datafusion/core/src/physical_plan/file_format/csv.rs:
##########
@@ -252,7 +252,13 @@ pub async fn plan_to_csv(
                 });
                 tasks.push(handle);
             }
-            futures::future::join_all(tasks).await;
+            let results = futures::future::join_all(tasks).await;
+            for result in results {
+                let result =
+                    result.map_err(|e| DataFusionError::Execution(format!("{}", e)))?;
+                let _ =
+                    result.map_err(|e| DataFusionError::Execution(format!("{}", e)))?;
+            }

Review Comment:
   open to suggestions on a better implementation here



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org