Skip to content

Commit 4043a7a

Browse files
authored
feat: [PSQL-367] add Apache Iceberg FDW (#462)
* feat: add iceberg fdw prototype * feat: add Apache Iceberg FDW * change iceberg dependency * format code * adjust wasm fdw test steps * skip checking format for generated files * fix wasm file path in wasm fdw test * debug wrappers test * ci: add s3 and iceberg service health check and dependency * change timestamp with timezone test case * fix bigquery test failure * fix bigquery test failure * format code * add rustls crypto primitive initialization * add docs and support for starts_with predicate * remove precision loss data conversion * update usage docs
1 parent e4df1d2 commit 4043a7a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+4628
-1480
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Install Rust toolchain
2121
uses: actions-rs/toolchain@v1
2222
with:
23-
toolchain: 1.84.1
23+
toolchain: 1.85.1
2424
components: llvm-tools-preview, rustfmt, clippy
2525
default: true
2626
override: true

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
# Ensure installed pg_config is first on path
7373
export PATH=$PATH:/usr/lib/postgresql/${{ matrix.postgres }}/bin
7474
75-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile minimal --default-toolchain 1.84.1 && \
75+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile minimal --default-toolchain 1.85.1 && \
7676
rustup --version && \
7777
rustc --version && \
7878
cargo --version

.github/workflows/release_wasm_fdw.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Set up Rust
3030
run: |
3131
# install Rust
32-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile minimal --default-toolchain 1.84.1 && \
32+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile minimal --default-toolchain 1.85.1 && \
3333
rustup --version && \
3434
rustc --version && \
3535
cargo --version

.github/workflows/test_supabase_wrappers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
- uses: actions-rs/toolchain@v1
2121
with:
22-
toolchain: 1.84.1
22+
toolchain: 1.85.1
2323
default: true
2424
override: true
2525
components: rustfmt, clippy

.github/workflows/test_wrappers.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
2727
- uses: actions-rs/toolchain@v1
2828
with:
29-
toolchain: 1.84.1
29+
toolchain: 1.85.1
3030
default: true
3131
override: true
3232
components: rustfmt, clippy
@@ -74,7 +74,7 @@ jobs:
7474
7575
- uses: actions-rs/toolchain@v1
7676
with:
77-
toolchain: 1.84.1
77+
toolchain: 1.85.1
7878
default: true
7979
override: true
8080
components: rustfmt, clippy
@@ -98,15 +98,17 @@ jobs:
9898

9999
- name: Build Wasm FDWs
100100
run: |
101-
find ./wasm-wrappers/fdw/ -name "Cargo.toml" -exec cargo component build --release --target wasm32-unknown-unknown --manifest-path {} \;
101+
cd ./wasm-wrappers/fdw && cargo component build --release --target wasm32-unknown-unknown
102102
103+
# we don't want to check format for generated files, so we use
104+
# 'git diff --quiet' trick here, instead of 'cargo fmt --check'
103105
- name: Format code
104106
run: |
105-
find ./wasm-wrappers/fdw/ -name "Cargo.toml" -exec cargo fmt --check --manifest-path {} \;
107+
cd ./wasm-wrappers/fdw && cargo fmt && git diff --quiet
106108
107109
- name: Run clippy
108110
run: |
109-
RUSTFLAGS="-D warnings" find ./wasm-wrappers/fdw/ -name "Cargo.toml" -exec cargo clippy --all --tests --no-deps --manifest-path {} \;
111+
cd ./wasm-wrappers/fdw && RUSTFLAGS="-D warnings" cargo clippy --all --tests --no-deps
110112
111113
- name: Perform test
112114
run: cd wrappers && cargo pgrx test --features "wasm_fdw pg15"

0 commit comments

Comments
 (0)