Skip to content

Commit 3ba15bb

Browse files
Fix deltalake s3
1 parent 668b29b commit 3ba15bb

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,6 @@ jobs:
303303
- name: Run Deltalake tests
304304
run: |
305305
cargo test --features="deltalake s3" extension_cases::deltalake
306-
env:
307-
AWS_ACCESS_KEY_ID: LSIAQAAAAAAVNCBMPNSG
308-
AWS_SECRET_ACCESS_KEY: 5555555555555555555555555555555555555555
309-
AWS_ENDPOINT_URL: http://localhost:9000
310-
AWS_REGION: us-east-1
311-
AWS_ALLOW_HTTP: true
312306
test-udfs-wasm:
313307
name: Extension / UDFs-WASM
314308
runs-on: ubuntu-latest

tests/extension_cases/deltalake.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ async fn test_deltalake_s3() {
5454
let tempdir = tempfile::tempdir().unwrap();
5555
let ddl_path = tempdir.path().join("my_ddl.sql");
5656
let mut file = std::fs::File::create(ddl_path.clone()).unwrap();
57-
let ddl = "CREATE EXTERNAL TABLE delta_tbl STORED AS DELTATABLE LOCATION 's3://test/deltalake/simple_table';";
57+
let ddl = "CREATE EXTERNAL TABLE delta_tbl STORED AS DELTATABLE LOCATION 's3://test/deltalake/simple_table' \
58+
OPTIONS ('aws_endpoint' 'http://localhost:9000', \
59+
'aws_access_key_id' 'LSIAQAAAAAAVNCBMPNSG', \
60+
'aws_secret_access_key' '5555555555555555555555555555555555555555', \
61+
'aws_allow_http' 'true', \
62+
'aws_region' 'us-east-1');";
5863
file.write_all(ddl.as_bytes()).unwrap();
5964
file.flush().unwrap();
6065

0 commit comments

Comments
 (0)