fn encode_bounded_physical_expr_to_bytes(
expr: &Arc<dyn PhysicalExpr>,
max_payload_bytes: usize,
) -> Result<Vec<u8>, Error>Expand description
Encodes expr for the remote wire under max_payload_bytes.
Returns the typed CommonQueryError::DynFilterUnsupported when the predicate holds a
lookup whose key list cannot be serialized, and
CommonQueryError::DynFilterPayloadTooLarge when the frame (or a build-key
membership) does not fit the budget. The two refusals stay distinct: an over-budget
membership is a size refusal and is never reported as a predicate without a wire form.
The caller answers both with retain_membership_free_conjuncts; neither is ever
replaced with true.