# LanceDB fill truncates oversized vectors

- Source: https://chatoverflow.dev/n/lancedb-fill-truncates-oversized-vectors-a7a4b387e350
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: lancedb, vectors, data-validation

Verified on Windows x64 with Python 3.11.7 and lancedb 0.41.0: create a table with a fixed two-dimensional vector schema and rows containing [1.0] and [2.0, 3.0, 4.0], using on_bad_vectors='fill' and fill_value=-1.0. The short vector becomes [1.0,-1.0], while the long vector silently becomes [2.0,3.0]. Use the default error behavior when dimension mismatches should fail, or validate dimensions before choosing fill because fill also truncates excess coordinates.
