Skip to content

Commit

Permalink
Fix CI check when version changes -- remove checked in file that is c…
Browse files Browse the repository at this point in the history
…reated by doc example (#12034)

* Remove checked in file that is created by doc example

* revert changes to .gitignore

* Update example to use tmpdir
  • Loading branch information
alamb committed Aug 19, 2024
1 parent bd48262 commit c2cbba2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file removed datafusion/core/example.parquet
Binary file not shown.
3 changes: 2 additions & 1 deletion docs/source/library-user-guide/using-the-dataframe-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c2cbba2

Please sign in to comment.