Skip to content

Commit 2677110

Browse files
committed
Fix code block indenting and fencing
1 parent b5bd6ac commit 2677110

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

docs/usage/appending-overwriting-delta-lake-table.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

4748
Here are the updated contents of the Delta table:
4849

@@ -64,13 +65,15 @@ Now let's see how to perform an overwrite transaction.
6465

6566
Now 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+
8892
Here 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

Comments
 (0)