Skip to content

Commit a36c2f6

Browse files
committed
Merge branch 'main' into docs_catalog_example
2 parents 4824905 + 75d07ce commit a36c2f6

File tree

156 files changed

+23161
-3918
lines changed

Some content is hidden

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

156 files changed

+23161
-3918
lines changed

.cargo/config.toml

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
with:
6969
python-version: "3.12"
7070

71-
- uses: astral-sh/setup-uv@v6
71+
- uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098
7272
with:
7373
enable-cache: true
7474

@@ -99,7 +99,7 @@ jobs:
9999
run: taplo format --check
100100

101101
check-crates-patch:
102-
if: inputs.build_mode == 'release'
102+
if: inputs.build_mode == 'release' && startsWith(github.ref, 'refs/tags/')
103103
runs-on: ubuntu-latest
104104
steps:
105105
- uses: actions/checkout@v6
@@ -112,7 +112,7 @@ jobs:
112112
steps:
113113
- uses: actions/checkout@v6
114114

115-
- uses: astral-sh/setup-uv@v6
115+
- uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098
116116
with:
117117
enable-cache: true
118118

@@ -154,7 +154,7 @@ jobs:
154154
with:
155155
key: ${{ inputs.build_mode }}
156156

157-
- uses: astral-sh/setup-uv@v6
157+
- uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098
158158
with:
159159
enable-cache: true
160160

@@ -222,10 +222,23 @@ jobs:
222222
with:
223223
key: ${{ inputs.build_mode }}
224224

225-
- uses: astral-sh/setup-uv@v6
225+
- uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098
226226
with:
227227
enable-cache: true
228228

229+
- name: Add extra swap for release build
230+
if: inputs.build_mode == 'release'
231+
run: |
232+
set -euxo pipefail
233+
sudo swapoff -a || true
234+
sudo rm -f /swapfile
235+
sudo fallocate -l 16G /swapfile || sudo dd if=/dev/zero of=/swapfile bs=1M count=16384
236+
sudo chmod 600 /swapfile
237+
sudo mkswap /swapfile
238+
sudo swapon /swapfile
239+
free -h
240+
swapon --show
241+
229242
- name: Build (release mode)
230243
uses: PyO3/maturin-action@v1
231244
if: inputs.build_mode == 'release'
@@ -280,7 +293,7 @@ jobs:
280293
with:
281294
key: ${{ inputs.build_mode }}
282295

283-
- uses: astral-sh/setup-uv@v7
296+
- uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098
284297
with:
285298
enable-cache: true
286299

@@ -354,7 +367,7 @@ jobs:
354367
with:
355368
key: ${{ inputs.build_mode }}
356369

357-
- uses: astral-sh/setup-uv@v7
370+
- uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098
358371
with:
359372
enable-cache: true
360373

@@ -478,7 +491,7 @@ jobs:
478491
python-version: "3.10"
479492

480493
- name: Install dependencies
481-
uses: astral-sh/setup-uv@v7
494+
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098
482495
with:
483496
enable-cache: true
484497

.github/workflows/test.yml

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,6 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v6
4343

44-
- name: Verify example datafusion version
45-
run: |
46-
MAIN_VERSION=$(grep -A 1 "name = \"datafusion-common\"" Cargo.lock | grep "version = " | head -1 | sed 's/.*version = "\(.*\)"/\1/')
47-
EXAMPLE_VERSION=$(grep -A 1 "name = \"datafusion-common\"" examples/datafusion-ffi-example/Cargo.lock | grep "version = " | head -1 | sed 's/.*version = "\(.*\)"/\1/')
48-
echo "Main crate datafusion version: $MAIN_VERSION"
49-
echo "FFI example datafusion version: $EXAMPLE_VERSION"
50-
51-
if [ "$MAIN_VERSION" != "$EXAMPLE_VERSION" ]; then
52-
echo "❌ Error: FFI example datafusion versions don't match!"
53-
exit 1
54-
fi
55-
5644
- name: Setup Python
5745
uses: actions/setup-python@v6
5846
with:
@@ -65,7 +53,7 @@ jobs:
6553
key: cargo-cache-${{ matrix.toolchain }}-${{ hashFiles('Cargo.lock') }}
6654

6755
- name: Install dependencies
68-
uses: astral-sh/setup-uv@v7
56+
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098
6957
with:
7058
enable-cache: true
7159

@@ -113,21 +101,14 @@ jobs:
113101
cd examples/datafusion-ffi-example
114102
uv run --no-project pytest python/tests/_test*.py
115103
116-
- name: Cache the generated dataset
117-
id: cache-tpch-dataset
118-
uses: actions/cache@v5
119-
with:
120-
path: benchmarks/tpch/data
121-
key: tpch-data-2.18.0
122-
123-
- name: Run dbgen to create 1 Gb dataset
124-
if: ${{ steps.cache-tpch-dataset.outputs.cache-hit != 'true' }}
104+
- name: Run tpchgen-cli to create 1 Gb dataset
125105
run: |
126-
cd benchmarks/tpch
127-
RUN_IN_CI=TRUE ./tpch-gen.sh 1
106+
mkdir examples/tpch/data
107+
cd examples/tpch/data
108+
uv pip install tpchgen-cli
109+
uv run --no-project tpchgen-cli -s 1 --format=parquet
128110
129111
- name: Run TPC-H examples
130112
run: |
131113
cd examples/tpch
132-
uv run --no-project python convert_data_to_parquet.py
133114
uv run --no-project pytest _tests.py

0 commit comments

Comments
 (0)