FFI/C++: preserve row range and limit presence in vx_scan_options instead of using 0 as sentinel
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 30/100
Direzione di ricerca
Start in vortex-ffi/src/scan.rs, where vx_scan_options turns zero values into absent row range and limit, and in lang/cpp/src/data_source.cpp, where the C++ wrapper flattens the optionals into 0. Compare with the Java binding, which already treats [0, 0) and limit = 0 as real values. Done means presence flags such as has_row_range_begin, has_row_range_end and has_limit are added to the C ABI and the wrapper passes them through, so C/C++ and Java return the same rows for the three cases in the issue. The ABI change is a design decision, so confirm the approach with maintainers before coding.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow-up from #11839.
vx_scan_options (vortex-ffi/src/scan.rs) still uses 0 as the sentinel for absent row_range_begin, row_range_end, and limit ((start > 0 || end > 0).then_some(start..end) and (limit != 0).then_some(limit)), and the C++ wrapper (lang/cpp/src/data_source.cpp) flattens std::optional<RowRange> and std::optional<uint64_t> into 0, losing presence information.
After #11839, the Java and C/C++ bindings diverge on the same requests:
row_range = [0, 0)returns 0 rows in Java, but all rows in C/C++ (so an empty split at offset 0 reads the whole file).limit = 0returns 0 rows in Java, but all rows in C/C++.- An open-ended
row_range_begin = nreads rowsn..in Java, whereas C/C++{n, 0}returns no rows (or an error after #11842).
Fixing this requires a C ABI change to carry explicit presence flags (e.g., has_row_range_begin, has_row_range_end, has_limit) on vx_scan_options and updating the C++ wrapper accordingly.
- Lingua principale
- Rust
- Stelle
- 3.2k
- Fork
- 239
- Merge medio
- 1g 4h
- PR unite (30g)
- 684
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di vortex-data/vortex
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
vortex-data/vortex#12633 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
vortex-data/vortex#12628 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
vortex-data/vortex#12491 ·
I maintainer di solito rispondono entro 1 giorno
-
Fallible constructor for nested_case_whenForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
vortex-data/vortex#11425 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 67/100
vortex-data/vortex#12635 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di vortex-data/vortex
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
marklauter/tsong#110 ·
-
docs enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
wasm-bindgen/wasm-bindgen#5503 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
area: engine bug needs milestone
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Mudcrab-Team/mudcrab#1197 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno