Skip to main content

MIN_ENCODED_LITERAL_BYTES

Constant MIN_ENCODED_LITERAL_BYTES 

Source
const MIN_ENCODED_LITERAL_BYTES: usize = 2;
Expand description

Smallest number of encoded bytes a single IN list literal can take.

Every list entry is a PhysicalExprNode whose literal arm holds the ScalarValue message itself, so the oneof field tag plus its length prefix are already 2 bytes even for an empty Utf8 value (whose ScalarValue body may encode to nothing at all). Protobuf sizes add up across nesting, so a payload of B bytes can never hold more than B / 2 literals. This is the floor the value bound is derived from; it is not an encoder policy constant.