Fixes#5285.
## Summary
- Decode a backtick-quoted SQL column name for the Blob bytes lookup.
Continue passing the original SQL through to query execution.
- Cover direct Blob aliases and a quoted struct containing a nested
Blob, alongside unchanged unquoted projections and SQL string literals.
- Preserve the existing descriptor output in Embedded queries when a
quoted identifier itself contains a dot. A separate projection of the
actual nested Blob still returns its bytes.
## Testing
- Reproduced the descriptor output with the published Node package and
saw the new native Embedded regression fail on main.
- 206 tests passed across the native nested Blob, Blob, expression, and
query suites. Independently reran the new regression.
- TypeScript build, targeted Biome checks, and `git diff --check`
passed. Tests use the release-matched native module.
AI assistance was used to identify, implement, and review the change.
---------
Co-authored-by: Divyam Talwar <152021174+DivyamTalwar@users.noreply.github.com>
Co-authored-by: Divyam Talwar <194859478+DivyamTalwar@users.noreply.github.com>
`blobMode: "bytes"` left blobs inside structs as descriptors because
projection matching ignored parent structs and byte replacement only
rebuilt top-level fields.
Expand direct struct projections and aliases to their blob leaves, then
recursively replace the corresponding Arrow fields and data with
`LargeBinary`. Track literal output names separately from descendant
paths so scalar aliases stay intact and every overlapping blob
projection is converted. Preserve null structs, null and empty blobs,
sibling fields, schema metadata, and the existing row ID and snapshot
behavior. Blobs inside lists retain their descriptors. Update the API
docs to describe struct support.
Regression coverage includes full and parent-struct projections, leaf
and struct aliases, dotted output names, overlapping projections in both
orders, nested structs, nulls, empty blobs and results, multiple
batches, list siblings, query reuse, row IDs, and concurrent writes.
Regression tests reproduce the nested-blob and projection-collision
failures before the corresponding changes.
Validation:
- `pnpm build`
- `pnpm lint`
- `pnpm run docs`
- `pnpm test __test__/nested_blob.test.ts __test__/blob.test.ts
__test__/query.test.ts --runInBand --verbose=false` — 142 passed
- `pnpm test __test__/table.test.ts --runInBand --verbose=false -t 'when
dealing with blob columns'` — 60 passed
Fixes#4609
<!-- lance-gatekeeper-fix:v1 agent=76edaac77d044c468d569b58efa2104a
generation=1 -->
---------
Co-authored-by: Gatefixer <313497061+lancedb-gatefixer[bot]@users.noreply.github.com>
Co-authored-by: Xuanwo <github@xuanwo.io>