Skip to content

Commit

Permalink
Minor fixes to the doc
Browse files Browse the repository at this point in the history
  • Loading branch information
aandres committed Oct 9, 2024
1 parent ef4e4a3 commit e78644c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/how-delta-lake-works/architecture-of-delta-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Start by creating a pandas DataFrame and writing it out to a Delta table.

```python
import pandas as pd
from deltalake import DeltaTable, write_deltalake
from deltalake import write_deltalake

df = pd.DataFrame({"num": [1, 2, 3], "letter": ["a", "b", "c"]})
write_deltalake("tmp/some-table", df)
Expand Down Expand Up @@ -86,7 +86,7 @@ Create another pandas DataFrame and append it to the Delta table to see how this

```python
df = pd.DataFrame({"num": [8, 9], "letter": ["dd", "ee"]})
write_deltalake(f"{cwd}/tmp/delta-table", df, mode="append")
write_deltalake("tmp/some-table", df, mode="ovewrite")
```

Here are the files in storage:
Expand Down Expand Up @@ -132,7 +132,7 @@ Now create a third pandas DataFrame and overwrite the Delta table with the new d

```python
df = pd.DataFrame({"num": [11, 22], "letter": ["aa", "bb"]})
write_deltalake(f"{cwd}/tmp/delta-table", df, mode="append")
write_deltalake("tmp/some-table", df, mode="overwrite")
```

Here are the files in storage:
Expand Down Expand Up @@ -202,7 +202,7 @@ Data lakes consist of data files persisted in storage. They don't have a transac

Data lakes perform transactions differently than Delta tables.

When you perform an overwrite tranasction with a Delta table, you logically delete the exiting data without physically removing it.
When you perform an overwrite transaction with a Delta table, you logically delete the exiting data without physically removing it.

Data lakes don't support logical deletes, so you have to physically delete the data from storage.

Expand Down

0 comments on commit e78644c

Please sign in to comment.