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/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new c2cbba26df Fix CI check when version changes -- remove checked in file
that is created by doc example (#12034)
c2cbba26df is described below
commit c2cbba26dfebf40744c01fd36e1ea1598795208e
Author: Andrew Lamb <[email protected]>
AuthorDate: Mon Aug 19 14:26:23 2024 -0400
Fix CI check when version changes -- remove checked in file that is created
by doc example (#12034)
* Remove checked in file that is created by doc example
* revert changes to .gitignore
* Update example to use tmpdir
---
datafusion/core/example.parquet | Bin 976 -> 0 bytes
docs/source/library-user-guide/using-the-dataframe-api.md | 3 ++-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/datafusion/core/example.parquet b/datafusion/core/example.parquet
deleted file mode 100644
index 17f7473cd2..0000000000
Binary files a/datafusion/core/example.parquet and /dev/null differ
diff --git a/docs/source/library-user-guide/using-the-dataframe-api.md
b/docs/source/library-user-guide/using-the-dataframe-api.md
index 9e7774cbb9..3bd47ef50e 100644
--- a/docs/source/library-user-guide/using-the-dataframe-api.md
+++ b/docs/source/library-user-guide/using-the-dataframe-api.md
@@ -188,8 +188,9 @@ async fn main() -> Result<()> {
// read example.csv file into a DataFrame
let df = ctx.read_csv("tests/data/example.csv",
CsvReadOptions::new()).await?;
// stream the contents of the DataFrame to the `example.parquet` file
+ let target_path = tempfile::tempdir()?.path().join("example.parquet");
df.write_parquet(
- "example.parquet",
+ target_path.to_str().unwrap(),
DataFrameWriteOptions::new(),
None, // writer_options
).await;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]