The generated enforce-order row deserializer reports the Rust field index when constructing column deserialization errors.
Code permalink:
|
column_index: #field_index, |
Rust field indexes include fields skipped by the derive macro. If a skipped field appears before a failing column, the public error reports the Rust field position instead of the actual CQL column index.
Suggested direction: report the column index from the matched CQL column metadata so diagnostics and programmatic error handling point at the failing column.
The generated enforce-order row deserializer reports the Rust field index when constructing column deserialization errors.
Code permalink:
scylla-rust-driver/scylla-macros/src/deserialize/row.rs
Line 314 in e04a12a
Rust field indexes include fields skipped by the derive macro. If a skipped field appears before a failing column, the public error reports the Rust field position instead of the actual CQL column index.
Suggested direction: report the column index from the matched CQL column metadata so diagnostics and programmatic error handling point at the failing column.