alamb commented on code in PR #8005:
URL: https://github.com/apache/arrow-datafusion/pull/8005#discussion_r1377672170


##########
datafusion-examples/examples/dataframe.rs:
##########
@@ -41,12 +44,20 @@ async fn main() -> Result<()> {
     // print the results
     df.show().await?;
 
+    // create a csv file waiting to be written
+    let path = "example.csv";
+    let dir = tempdir()?;
+    let file_path = PathBuf::from(dir.path()).join(path);

Review Comment:
   You might be able to express this more concisely like this, perhaps
   
   ```suggestion
       let file_path = dir.path().join("example.csv");
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to