pub fn attr_hash(key: &str, value: &[u8]) -> (u64, u64)Expand description
Hash one (key, canonical value) pair for ATTR_IDX.
The value is the text of the scalar, not its typed bytes, and that is what
makes one probe enough. A query scalar is compared against whatever type the
column happens to hold — {attr: http.status_code, eq: "200"} matches a
stored integer 200, because the comparison parses rather than requiring the
query to know the SDK’s choice. Indexing the decimal text makes the filter
agree with that rule instead of quietly disagreeing with it, which would be a
false negative and therefore a lost row.