Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scylla-rust-wrapper/src/cass_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ impl ToCassError for SerializationError {
// It means that our custom `UnknownNamedParameterError` was returned.
CassError::CASS_ERROR_LIB_NAME_DOES_NOT_EXIST
} else {
CassError::CASS_ERROR_LAST_ENTRY
CassError::CASS_ERROR_LIB_INVALID_DATA
}
}
Comment on lines 257 to 262
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit: "cass_error: SerializationError -> INVALID_DATA "

When is LIB_INVALID_DATA appropriate vs LIB_MESSAGE_ENCODE?

Copy link
Collaborator Author

@wprzytula wprzytula Aug 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My vague understanding of it is that when the particular CQL value is of bad type or corrupted, then INVALID_DATA is appropriate. MESSAGE_ENCODE is more about CQL protocol limitations, such as too big number of values, too many statements in a batch etc.

}
Expand Down