You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
custom_datasource example panicked during RepartitionExec planning #15493
Interesting, there were also some benchmark fails, it show the same error with the same line in: panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22:
cargo bench -p datafusion --bench topk_aggregate --profile release-nonlto
Finished `release-nonlto` profile [optimized]target(s) in 0.34s
Running benches/topk_aggregate.rs(target/release-nonlto/deps/topk_aggregate-cbbaaf4e04209381)Gnuplot not found, using plotters backend
Benchmarking aggregate 10000000 time-series rows:Warming up for3.0000 s
thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22:
partition not used yet
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22:
partition not used yet
thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22:
partition not used yet
thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22:
partition not used yet
thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22:
partition not used yet
thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22:
partition not used yet
Also the tpch benchmark fails for the main branch:
RUST_BACKTRACE=1./bench.sh run tpch10***************************DataFusionBenchmarkScriptCOMMAND: run
BENCHMARK: tpch10
DATAFUSION_DIR: /Users/zhuqi/arrow-datafusion/benchmarks/..
BRANCH_NAME: main
DATA_DIR: /Users/zhuqi/arrow-datafusion/benchmarks/data
RESULTS_DIR: /Users/zhuqi/arrow-datafusion/benchmarks/results/main
CARGO_COMMAND: cargo run --release
PREFER_HASH_JOIN: true
***************************RESULTS_FILE: /Users/zhuqi/arrow-datafusion/benchmarks/results/main/tpch_sf10.jsonRunning tpch benchmark...
Finished `release` profile [optimized] target(s) in 0.20s
Running `/Users/zhuqi/arrow-datafusion/target/release/tpch benchmark datafusion --iterations 5 --path /Users/zhuqi/arrow-datafusion/benchmarks/data/tpch_sf10 --prefer_hash_join true --format parquet -o /Users/zhuqi/arrow-datafusion/benchmarks/results/main/tpch_sf10.json`
Running benchmarks with the following options:RunOpt{ query:None, common:CommonOpt{iterations:5,partitions:None,batch_size:8192,mem_pool_type:"fair",memory_limit:None,sort_spill_reservation_bytes:None,debug:false}, path: "/Users/zhuqi/arrow-datafusion/benchmarks/data/tpch_sf10", file_format: "parquet", mem_table: false, output_path: Some("/Users/zhuqi/arrow-datafusion/benchmarks/results/main/tpch_sf10.json"), disable_statistics: false, prefer_hash_join: true }Query1 iteration 0 took 690.9 ms and returned 4 rows
Query1 iteration 1 took 598.7 ms and returned 4 rows
Query1 iteration 2 took 601.4 ms and returned 4 rows
Query1 iteration 3 took 581.8 ms and returned 4 rows
Query1 iteration 4 took 637.5 ms and returned 4 rows
Query1 avg time:622.06 ms
thread'tokio-runtime-worker' panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22:
partition not used yet
stack backtrace:
note:Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22:
partition not used yet
stack backtrace:
note:Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Activity
2010YOUY01 commentedon Mar 30, 2025
Likely caused by #15302
And it's getting reverted #15494
goldmedal commentedon Mar 30, 2025
I saw similar error messages when running tpch sqllogictest in the latest main branch
goldmedal commentedon Mar 30, 2025
I guess #15476 is the root cause.
When I checked out 9071503, the tests passed.
❌ 14635da (HEAD -> main, origin/main, origin/HEAD, goldmedal/main) perf: Reuse row converter during sort (#15302)
❌ e2b7919 Improve performance sort TPCH q3 with Utf8Vew ( Sort-preserving merging on a single Utf8View ) (#15447)
❌ 7e0738a Remove CoalescePartitions insertion from HashJoinExec (#15476)
✅ 9071503 Update ClickBench queries to avoid to_timestamp_seconds (#15475)
goldmedal commentedon Mar 30, 2025
By the way, the fail example is
dataframe, notcustom_datasource.zhuqi-lucas commentedon Mar 30, 2025
Interesting, there were also some benchmark fails, it show the same error with the same line in: panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22:
cargo bench -p datafusion --bench topk_aggregate --profile release-nonlto Finished `release-nonlto` profile [optimized] target(s) in 0.34s Running benches/topk_aggregate.rs (target/release-nonlto/deps/topk_aggregate-cbbaaf4e04209381) Gnuplot not found, using plotters backend Benchmarking aggregate 10000000 time-series rows: Warming up for 3.0000 s thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22: partition not used yet note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22: partition not used yet thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22: partition not used yet thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22: partition not used yet thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22: partition not used yet thread 'tokio-runtime-worker' panicked at datafusion/physical-plan/src/repartition/mod.rs:618:22: partition not used yet#15213
acking-you commentedon Mar 30, 2025
Interesting,I just noticed that the CI also failed at this point
zhuqi-lucas commentedon Mar 30, 2025
Also the tpch benchmark fails for the main branch:
acking-you commentedon Mar 30, 2025
I'm quite curious as to why the PR that caused the panic can pass the CI.
goldmedal commentedon Mar 30, 2025
I think its branch https://github.com/ctsk/datafusion/tree/remove-hj-coalesce is based on the old main branch (about 2 weeks ago). Then, #15476 was created 2 days ago, some PRs were merged after its CI passed. Not sure which one is conflicting with it.
zhuqi-lucas commentedon Mar 30, 2025
Revert the #15476
Just tested, also fixed the tpch bench.