Skip to content

Commit

Permalink
Merge branch 'delta-io:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanaston authored Oct 10, 2023
2 parents 1ec7c78 + dfb04e9 commit b3f301d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rust/src/operations/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
//!
//! In combination with `Overwrite`, a `replaceWhere` option can be used to transactionally
//! replace data that matches a predicate.
//!
//! # Example
//! ```rust ignore
//! let id_field = arrow::datatypes::Field::new("id", arrow::datatypes::DataType::Int32, false);
//! let schema = Arc::new(arrow::datatypes::Schema::new(vec![id_field]));
//! let ids = arrow::array::Int32Array::from(vec![1, 2, 3, 4, 5]);
//! let batch = RecordBatch::try_new(schema, vec![Arc::new(ids)])?;
//! let ops = DeltaOps::try_from_uri("../path/to/empty/dir").await?;
//! let table = ops.write(vec![batch]).await?;
//! ````

use std::collections::HashMap;
use std::sync::Arc;
Expand Down

0 comments on commit b3f301d

Please sign in to comment.