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


##########
datafusion/core/src/dataframe.rs:
##########
@@ -1353,4 +1379,39 @@ mod tests {
 
         Ok(())
     }
+
+    #[tokio::test]
+    async fn cache_test() -> Result<()> {
+        let df = test_table()
+            .await?
+            .select_columns(&["c2", "c3"])?
+            .limit(0, Some(1))?
+            .with_column("sum", cast(col("c2") + col("c3"), DataType::Int64))?
+            .cache()

Review Comment:
   Is it intentional that both DataFrames are cached?



-- 
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