This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 44575a87e3 Update example in the DataFrame documentation. (#7650)
44575a87e3 is described below

commit 44575a87e34d30a61d68bfd0a414bdea2f9d6aa4
Author: jsimpson-gro <[email protected]>
AuthorDate: Mon Sep 25 13:23:01 2023 -0700

    Update example in the DataFrame documentation. (#7650)
    
    In the [documentation for 
DataFrame](https://arrow.apache.org/datafusion/user-guide/dataframe.html), a 
copy/paste of the example has a couple
    of compile errors.
    
    `.show` returns a `Future`, and the `Future` returns a `Result`.
---
 docs/source/user-guide/dataframe.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/source/user-guide/dataframe.md 
b/docs/source/user-guide/dataframe.md
index 8ebf4cc678..4484b2c510 100644
--- a/docs/source/user-guide/dataframe.md
+++ b/docs/source/user-guide/dataframe.md
@@ -44,7 +44,7 @@ let df = df.filter(col("a").lt_eq(col("b")))?
            .aggregate(vec![col("a")], vec![min(col("b"))])?
            .limit(0, Some(100))?;
 // Print results
-df.show();
+df.show().await?;
 ```
 
 The DataFrame API is well documented in the [API reference on 
docs.rs](https://docs.rs/datafusion/latest/datafusion/dataframe/struct.DataFrame.html).

Reply via email to