MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / build_row

Function build_row

nodedb/src/data/executor/handlers/join/lateral/shared.rs:189–202  ·  view source on GitHub ↗

Build and optionally project a merged row.

(
    outer: &[u8],
    inner: Option<&[u8]>,
    outer_alias: &str,
    lateral_alias: &str,
    projection: &[JoinProjection],
)

Source from the content-addressed store, hash-verified

187
188/// Build and optionally project a merged row.
189pub(super) fn build_row(
190 outer: &[u8],
191 inner: Option<&[u8]>,
192 outer_alias: &str,
193 lateral_alias: &str,
194 projection: &[JoinProjection],
195) -> Vec<u8> {
196 let merged = merge_join_docs_binary(outer, inner, outer_alias, lateral_alias);
197 if projection.is_empty() {
198 merged
199 } else {
200 binary_row_project(&merged, projection)
201 }
202}
203
204/// If `bytes` is a scan-row wrapper `{id: ..., data: ...}`, return the `data`
205/// field's bytes. Otherwise return `bytes` as-is (already a plain map).

Callers 2

execute_lateral_top_kMethod · 0.85
execute_lateral_loopMethod · 0.85

Calls 3

merge_join_docs_binaryFunction · 0.85
binary_row_projectFunction · 0.85
is_emptyMethod · 0.45

Tested by

no test coverage detected