Skip to content

Commit 4929c5a

Browse files
Merge branch 'develop' into ji/use-windows-pool
2 parents 83c6e2b + 507385e commit 4929c5a

File tree

252 files changed

+9254
-2292
lines changed

Some content is hidden

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

252 files changed

+9254
-2292
lines changed

.github/workflows/bench.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -178,20 +178,4 @@ jobs:
178178
"targets": "datafusion:parquet,datafusion:vortex,datafusion:vortex-compact,duckdb:parquet,duckdb:vortex,duckdb:vortex-compact",
179179
"scale_factor": "--scale-factor 100"
180180
},
181-
{
182-
"id": "gharchive-nvme",
183-
"subcommand": "gharchive",
184-
"name": "GitHub Archive (NVMe)",
185-
"targets": "datafusion:parquet,datafusion:vortex,datafusion:vortex-compact,duckdb:parquet,duckdb:vortex,duckdb:vortex-compact",
186-
"scale_factor": "--scale-factor 100"
187-
},
188-
{
189-
"id": "gharchive-s3",
190-
"subcommand": "gharchive",
191-
"name": "GitHub Archive (S3)",
192-
"local_dir": "bench-vortex/data/gharchive",
193-
"remote_storage": "s3://vortex-bench-dev-eu/${{github.ref_name}}/${{github.run_id}}/gharchive/",
194-
"targets": "datafusion:parquet,datafusion:vortex,datafusion:vortex-compact,duckdb:parquet,duckdb:vortex,duckdb:vortex-compact",
195-
"scale_factor": "--scale-factor 100"
196-
},
197181
]

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -657,13 +657,10 @@ jobs:
657657
- uses: ./.github/actions/setup-rust
658658
with:
659659
repo-token: ${{ secrets.GITHUB_TOKEN }}
660-
toolchain: nightly-2025-06-26
661660
targets: "wasm32-wasip1"
662-
components: "rust-src"
663661
- name: Setup Wasmer
664662
uses: wasmerio/[email protected]
665-
# there is a compiler bug in nightly (but not in nightly-2025-06-26)
666-
- run: cargo +nightly-2025-06-26 -Zbuild-std=panic_abort,std build --target wasm32-wasip1
663+
- run: cargo build --target wasm32-wasip1
667664
working-directory: ./wasm-test
668665
- run: wasmer run ./target/wasm32-wasip1/debug/wasm-test.wasm
669666
working-directory: ./wasm-test

.github/workflows/sql-benchmarks.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -85,22 +85,6 @@ on:
8585
"targets": "datafusion:parquet,datafusion:vortex,datafusion:vortex-compact,duckdb:parquet,duckdb:vortex,duckdb:vortex-compact",
8686
"scale_factor": "--scale-factor 100"
8787
},
88-
{
89-
"id": "gharchive-nvme",
90-
"subcommand": "gharchive",
91-
"name": "GitHub Archive (NVMe)",
92-
"targets": "datafusion:parquet,datafusion:vortex,datafusion:vortex-compact,duckdb:parquet,duckdb:vortex,duckdb:vortex-compact",
93-
"scale_factor": "--scale-factor 100"
94-
},
95-
{
96-
"id": "gharchive-s3",
97-
"subcommand": "gharchive",
98-
"name": "GitHub Archive (S3)",
99-
"local_dir": "bench-vortex/data/gharchive",
100-
"remote_storage": "s3://vortex-bench-dev-eu/${{github.ref_name}}/${{github.run_id}}/gharchive/",
101-
"targets": "datafusion:parquet,datafusion:vortex,datafusion:vortex-compact,duckdb:parquet,duckdb:vortex,duckdb:vortex-compact",
102-
"scale_factor": "--scale-factor 100"
103-
},
10488
]
10589
10690
jobs:

Cargo.lock

Lines changed: 35 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bench-vortex/src/bin/compress.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ fn compress(
109109
.map(|f| Target::new(Engine::default(), *f))
110110
.collect_vec();
111111

112-
let structlistofints = vec![
112+
let structlistofints = [
113113
StructListOfInts::new(100, 1000, 1),
114114
StructListOfInts::new(1000, 1000, 1),
115115
StructListOfInts::new(10000, 1000, 1),

bench-vortex/src/compress/bench.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ use {
2424
crate::bench_run::run_with_setup,
2525
crate::utils::parquet::convert_utf8view_batch,
2626
crate::utils::parquet::convert_utf8view_schema,
27+
anyhow::Context,
2728
arrow_array::RecordBatch,
2829
parking_lot::Mutex,
2930
std::fs,
@@ -131,9 +132,7 @@ pub fn benchmark_vortex_decompress(
131132
bench_name: &str,
132133
) -> Result<(Duration, CompressionTimingMeasurement)> {
133134
let mut buf = Vec::new();
134-
runtime
135-
.block_on(vortex_compress_write(uncompressed, &mut buf))
136-
.expect("Failed to compress with vortex for decompression test");
135+
runtime.block_on(vortex_compress_write(uncompressed, &mut buf))?;
137136
let buffer = Bytes::from(buf);
138137

139138
// Run the benchmark and measure time.
@@ -255,7 +254,7 @@ pub fn benchmark_lance_compress(
255254
.collect::<Result<Vec<_>, _>>()?;
256255
let converted_schema = convert_utf8view_schema(&schema);
257256

258-
let temp_dir = tempfile::tempdir().expect("Failed to create temp dir");
257+
let temp_dir = tempfile::tempdir().context("Failed to create temp dir")?;
259258
let iteration_paths: Arc<Mutex<Vec<PathBuf>>> = Arc::new(Mutex::new(Vec::new()));
260259
let iteration_counter = AtomicU64::new(0);
261260

@@ -289,7 +288,7 @@ pub fn benchmark_lance_compress(
289288
// Calculate size from the last iteration.
290289
let paths = iteration_paths.lock();
291290
let lance_compressed_size_val = if let Some(last_path) = paths.last() {
292-
calculate_lance_size(last_path).expect("Failed to calculate Lance size")
291+
calculate_lance_size(last_path).context("Failed to calculate Lance size")?
293292
} else {
294293
0
295294
};
@@ -320,7 +319,7 @@ pub fn benchmark_lance_decompress(
320319
// NOTE: Lance requires filesystem access unlike Parquet/Vortex which use in-memory buffers.
321320
let chunked = uncompressed.as_::<ChunkedVTable>().clone();
322321
let (batches, schema) = chunked_to_vec_record_batch(chunked);
323-
let temp_dir = tempfile::tempdir().expect("Failed to create temp dir");
322+
let temp_dir = tempfile::tempdir().context("Failed to create temp dir")?;
324323

325324
// Write the Lance dataset once for all iterations.
326325
let dataset_path = runtime.block_on(async {

bench-vortex/src/engines/df/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ pub fn make_object_store(
100100
let s3 = Arc::new(
101101
AmazonS3Builder::from_env()
102102
.with_bucket_name(bucket_name)
103-
.build()
104-
.unwrap(),
103+
.build()?,
105104
);
106105
df.register_object_store(&Url::parse(&format!("s3://{bucket_name}/"))?, s3.clone());
107106
Ok(s3)
@@ -111,8 +110,7 @@ pub fn make_object_store(
111110
let gcs = Arc::new(
112111
GoogleCloudStorageBuilder::from_env()
113112
.with_bucket_name(bucket_name)
114-
.build()
115-
.unwrap(),
113+
.build()?,
116114
);
117115
df.register_object_store(&Url::parse(&format!("gs://{bucket_name}/"))?, gcs.clone());
118116
Ok(gcs)

0 commit comments

Comments
 (0)