Skip to content

Report CQL column indexes for skipped fields in enforce-order row macro #1684

@dkropachev

Description

@dkropachev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions