Skip to content

Commit

Permalink
Merge pull request #3037 from szarnyasg/deltalake-package
Browse files Browse the repository at this point in the history
Delta blog post: Drop package version
  • Loading branch information
szarnyasg authored Jun 12, 2024
2 parents 375f5e0 + 3f33a83 commit 181f1b9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions _posts/2024-06-10-delta.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ a Delta table as a "collection of Parquet files with some metadata". With this s
Delta table and examine the files that are created, to improve our understanding. To do this, we'll set up Python with the packages: [`duckdb`](https://pypi.org/project/duckdb/), [`pandas`](https://pypi.org/project/pandas/) and [`deltalake`](https://pypi.org/project/deltalake/):

```bash
pip install duckdb pandas deltalake==0.17.4
pip install duckdb pandas deltalake
```

Then, we use DuckDB to create some dataframes with test data, and write that to a Delta table using the `deltalake` package:
Expand Down Expand Up @@ -254,8 +254,8 @@ Do you prefer remembering your AWS tokens by heart, and would like to type them
```sql
CREATE SECRET delta_s2 (
TYPE S3,
KEY_ID, 'AKIAIOSFODNN7EXAMPLE',
SECRET, 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY',
KEY_ID 'AKIAIOSFODNN7EXAMPLE',
SECRET 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY',
REGION 'eu-west-1'
)
SELECT * FROM delta_scan('s3://some-bucket/path/to/a/delta/table');
Expand All @@ -266,15 +266,15 @@ Do you have multiple Delta tables, with different credentials? No problem, you c
```sql
CREATE SECRET delta_s3 (
TYPE S3,
KEY_ID, 'AKIAIOSFODNN7EXAMPLE1',
SECRET, 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY1',
KEY_ID 'AKIAIOSFODNN7EXAMPLE1',
SECRET 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY1',
REGION 'eu-west-1',
SCOPE 's3://some-bucket1'
)
CREATE SECRET delta_s4 (
TYPE S3,
KEY_ID, 'AKIAIOSFODNN7EXAMPLE2',
SECRET, 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY2',
KEY_ID 'AKIAIOSFODNN7EXAMPLE2',
SECRET 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY2',
REGION 'us-west-1',
SCOPE 's3://some-bucket2'
)
Expand Down

0 comments on commit 181f1b9

Please sign in to comment.