@@ -28,7 +28,8 @@ Append two additional rows of data to the table:
2828 ```
2929
3030=== "Rust"
31- `rust
31+
32+ ```rust
3233 let delta_path = Url::from_directory_path("/tmp/some-table").unwrap();
3334 let table = open_table(delta_path).await?;
3435 DeltaOps(table).write(RecordBatch::try_new(
@@ -42,7 +43,7 @@ Append two additional rows of data to the table:
4243 "dd", "ee"
4344 ])),
4445 ])).with_save_mode(SaveMode::Append).await?;
45- `
46+ ```
4647
4748Here are the updated contents of the Delta table:
4849
@@ -64,13 +65,15 @@ Now let's see how to perform an overwrite transaction.
6465
6566Now let's see how to overwrite the existing Delta table.
6667=== "Python"
67- `python
68+
69+ ```python
6870 df = pd.DataFrame({"num": [11, 22], "letter": ["aa", "bb"]})
6971 write_deltalake("tmp/some-table", df, mode="overwrite")
70- `
72+ ```
7173
7274=== "Rust"
73- `rust
75+
76+ ```rust
7477 let delta_path = Url::from_directory_path("/tmp/some-table").unwrap();
7578 let table = open_table(delta_path).await?;
7679 DeltaOps(table).write(RecordBatch::try_new(
@@ -84,7 +87,8 @@ Now let's see how to overwrite the existing Delta table.
8487 "a", "b", "c",
8588 ])),
8689 ])).with_save_mode(SaveMode::Overwrite).await?;
87- `
90+ ```
91+
8892Here are the contents of the Delta table after the overwrite operation:
8993
9094```
@@ -105,11 +109,12 @@ Overwriting just performs a logical delete. It doesn't physically remove the pre
105109 ```
106110
107111=== "Rust"
108- `rust
112+
113+ ```rust
109114 let delta_path = Url::from_directory_path("/tmp/some-table").unwrap();
110115 let mut table = open_table(delta_path).await?;
111116 table.load_version(1).await?;
112- `
117+ ```
113118
114119```
115120+-------+----------+
0 commit comments