Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index out of bounds: the len is 2 but the index is 2 in some data sources #14957

Closed
Tracked by #14123
alamb opened this issue Mar 1, 2025 · 1 comment · Fixed by #14956
Closed
Tracked by #14123

index out of bounds: the len is 2 but the index is 2 in some data sources #14957

alamb opened this issue Mar 1, 2025 · 1 comment · Fixed by #14956
Labels
bug Something isn't working

Comments

@alamb
Copy link
Contributor

alamb commented Mar 1, 2025

Describe the bug

As part of testing DataFusion 46.0.0 on Delta.rs in

Here is an example failure:

https://github.com/delta-io/delta-rs/actions/runs/13592071811/job/38008047004?pr=3261

FAILED tests/test_cdf.py::test_read_cdf_partitioned_projection - pyo3_runtime.PanicException: index out of bounds: the len is 3 but the index is 3
FAILED tests/test_cdf.py::test_read_cdf_last_version - pyo3_runtime.PanicException: index out of bounds: the len is 2 but the index is 2
==== 2 failed, 495 passed, 7 skipped, 35 deselected, 95 warnings in 40.15s =====

To Reproduce

As @blaginin noted on delta-io/delta-rs#3261 (comment) the way to reproduce this is (in delta-rs)

cd python
make develop
RUST_BACKTRACE=1 uv run pytest tests/test_cdf.py -s -k "test_read_cdf_partitioned_projection"

Expected behavior

Tests should passs

Additional context

@alamb alamb added the bug Something isn't working label Mar 1, 2025
@alamb
Copy link
Contributor Author

alamb commented Mar 1, 2025

@blaginin has a proposed fix for this:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant