Skip to main content

encode_sparse_row_json

Function encode_sparse_row_json 

Source
pub fn encode_sparse_row_json(
    table: &TableSchema,
    row_id: &str,
    values: &Map<String, Value>,
    encryption: &EncryptionConfig,
) -> Result<Vec<u8>, String>
Expand description

Encode one SPARSE push payload (§2.4, §6.1): the keys of values ARE the presence set — a column with no key stays absent. §5.11: only present encrypted columns are encrypted; absent columns are densified to NULL for key-id selection only. Serialized with the wire_columns table.