pub fn encode_to_kind(value: &Value, ty: &SpannerType) -> Result<Kind, String>Expand description
Encode one JSON value for a destination column of type ty.
Returns a human-readable error naming the mismatch; callers wrap it with the column name and route the row to the DLQ or fail the batch.