add csv builder tests

This commit is contained in:
marin postma 2021-10-25 09:48:53 +02:00
parent 53c79e85f2
commit 430e9b13d3
No known key found for this signature in database
GPG key ID: 6088B7721C3E39F9
3 changed files with 297 additions and 31 deletions

View file

@ -179,7 +179,7 @@ impl Transform<'_, '_> {
if !self.autogenerate_docids {
let mut json = Map::new();
for (key, value) in document.iter() {
let key = addition_index.get_id(key).cloned();
let key = addition_index.name(key).cloned();
let value = serde_json::from_slice::<Value>(&value).ok();
if let Some((k, v)) = key.zip(value) {