Extract the primary key name and make it accessible

This commit is contained in:
Kerollmops
2022-06-21 10:45:25 +02:00
parent 6a0a0ae94f
commit 5f1bfb73ee
2 changed files with 29 additions and 5 deletions

View File

@ -94,7 +94,11 @@ pub fn validate_and_enrich_documents_batch<R: Read + Seek>(
}
let external_ids = writer_into_reader(external_ids)?;
let reader = EnrichedDocumentsBatchReader::new(cursor.into_reader(), external_ids)?;
let reader = EnrichedDocumentsBatchReader::new(
cursor.into_reader(),
primary_key.primary_key().to_string(),
external_ids,
)?;
Ok(Ok(reader))
}