You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue with the clickhouse crate when trying to serialize a struct that uses #[serde(flatten)] to combine multiple fields into a single row. It appears that the serialize_map function is not implemented, as indicated by the todo!() macro in src/rowbinary/ser.rs at line 168, column 9.
When attempting to serialize this struct, my binary panics because serialize_map is not yet supported by the crate. Is there a workaround or a planned update to support this functionality?
The text was updated successfully, but these errors were encountered:
For reference I intend to use this in a templated struct to apply metadata (source/timestamp) to rows during their final submissions. But the example above is better to show the behaviour I expect.
Thanks
Edit: I realise this may be related to struct flattening, not map flattening as the issue relates, but this may be to do with terminology in serde.
I encountered an issue with the
clickhouse
crate when trying to serialize a struct that uses#[serde(flatten)]
to combine multiple fields into a single row. It appears that theserialize_map
function is not implemented, as indicated by thetodo!()
macro insrc/rowbinary/ser.rs
at line 168, column 9.Example:
From the source (
src/rowbinary/ser.rs:168.9
)When attempting to serialize this struct, my binary panics because
serialize_map
is not yet supported by the crate. Is there a workaround or a planned update to support this functionality?The text was updated successfully, but these errors were encountered: