From c2cbba26dfebf40744c01fd36e1ea1598795208e Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Mon, 19 Aug 2024 14:26:23 -0400 Subject: [PATCH] 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 .../library-user-guide/using-the-dataframe-api.md | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) delete mode 100644 datafusion/core/example.parquet diff --git a/datafusion/core/example.parquet b/datafusion/core/example.parquet deleted file mode 100644 index 17f7473cd221426b545a5f437c42efdc6b1702b3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 976 zcmb7@KTE?v7{=dR+8CijE50u|xIqLD2dOP6WGIC$#i2uS>LzKesGxgv#0ocst5 zj)D#j4jueV4hr5iyd@OJUQyG|kINUSZ90Srul~X4prKeb-oea*0Ww9&+pIQt{(x9GzT^&IXqo*ZtwF W->a4@ 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;