mirror of
https://github.com/ModernRelay/omnigraph.git
synced 2026-06-12 01:45:14 +02:00
docs: clarify unit-separator comment in composite unique check
This commit is contained in:
parent
779a6a039e
commit
11c03b90a1
1 changed files with 3 additions and 2 deletions
|
|
@ -1463,8 +1463,9 @@ pub(crate) fn enforce_unique_constraints_intra_batch(
|
|||
if any_null {
|
||||
continue;
|
||||
}
|
||||
// Unit separator (U+001F) keeps composite parts unambiguous; it
|
||||
// cannot appear in the scalar renderings of supported types.
|
||||
// Join on the unit separator (U+001F) — a control char highly
|
||||
// unlikely to occur in real data, keeping composite keys
|
||||
// effectively unambiguous (cf. `exec/merge.rs`, which uses `|`).
|
||||
let value = parts.join("\u{1f}");
|
||||
if let Some(prev_row) = seen.insert(value.clone(), row) {
|
||||
return Err(OmniError::manifest(format!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue