Embeddings are how AI systems find things. Semantic search, retrieval-augmented generation, and agents that pull in relevant context or memory all work by comparing vectors. More and more of those vectors live in lakehouse tables, next to the data they describe. Yet until now, the lakehouse had no type for them. Today an embedding is usually just an ARRAY<FLOAT> column, and nothing in the schema says how long it is or whether its values are valid.
That's starting to change. In early November, the Apache Parquet community voted to add FINITE_VECTOR, a standard logical type for fixed-length lists of numbers. Apache Iceberg, Delta Lake, and Apache Spark are each defining a vector type on top of it. The goal is to define the contract once, in Parquet, and have every table format and engine map to it instead of inventing its own.
Where ARRAY<FLOAT> falls short
When a model produces embeddings of a fixed dimension, storing them as ARRAY<FLOAT> throws that knowledge away. The schema allows lists of any length with null elements, so readers must treat every row as if it could be different, even when every row has exactly 768 elements.
On top of this, every consumer must also take responsibility to check invariants. If truncated writes produce the wrong number of elements, or failed normalization steps produce NaN values, this can break index builds or quietly skew similarity rankings.
A vector type fixes both problems. The schema promises the dimension and rules out nulls and NaN, so engines and index builders downstream can stop checking every row.
FINITE_VECTOR adds guarantees to the list layout Parquet already has
FINITE_VECTOR(num_elements) is an annotation on Parquet's standard three-level list structure, and it guarantees that every non-null value holds exactly the specified number of required, finite elements. Here is a nullable column of 768-dimension float embeddings, as the spec defines it:
optional group embedding (FINITE_VECTOR(768)) {
repeated group list {
required float element;
}
}The spec spells out the contract:
- Every non-null vector has exactly
num_elementselements, andnum_elementsmust be greater than zero, so a non-null vector is never empty. - A vector can be null if the column allows it, but its elements are always required.
- Every element is finite. For
FLOAT,DOUBLE, andFLOAT16, that rules out NaN and infinite values.
Elements can be BOOLEAN, FLOAT, DOUBLE, INT32 or INT64 (plain, or annotated as INTEGER or DECIMAL), or a FIXED_LEN_BYTE_ARRAY annotated as FLOAT16 or DECIMAL.
Because the physical layout is an ordinary list, existing tools keep working. Writers also set the legacy LIST converted type, so a reader that has never heard of FINITE_VECTOR sees a list of numbers.
Pages, encodings, and statistics are those of the element column, so dictionary encoding and BYTE_STREAM_SPLIT behave exactly as they do today.
The magic happens when readers that understand the annotation take advantage of it. The Apache Arrow C++ and Python implementation reads a FINITE_VECTOR(n) column directly as fixed_size_list<element: T not null>[n]. The Java implementation validates vectors when writing and checks them when reading.
The vote passed with seven binding and eleven non-binding +1 votes and no objections, and the spec change merged on November 10.
Why the spec bans NaN and infinity
Banning non-finite values was the most debated part of the design, and the final spec puts that guarantee in storage. I'm glad the storage layer took this strict position. A healthy embedding model doesn't emit NaN or infinity, so seeing one means something upstream broke. Catching it at write time, next to the job that produced it, beats discovering it later in a corrupted index.
Apache Iceberg adds vector(E, D) to the v4 spec
Apache Iceberg builds on this new functionality: its draft v4 spec adds a vector(E, D) primitive type, where every non-null value holds exactly D non-null, finite elements of type E, and Parquet data files store it as FINITE_VECTOR(D) with the field ID on the outer group.
The proposal is tracked in apache/iceberg#18297, the spec change is apache/iceberg#18416, and the Java VectorType API is apache/iceberg#18676. In schema JSON, a vector is a string like "vector(float, 768)".
The core element types are int, long, float, and double.
A few table-level rules follow from how vectors get used:
- Vectors have no min/max bounds. Lexicographic bounds over coordinates can't prune a similarity search, and extra metadata cost to represent this is not needed.
- Vectors can't be partition sources, primary keys, or unique-constraint fields, and their default values must be null.
- The dimension can never change. The element type can widen, for example from
floattodouble, and readers convert older files without changing any values. - The spec doesn't promote list columns to vectors, even when every row has D elements, so adopting the type means writing a new vector column.
The vector type is still under active discussion and review.
Delta Lake is drafting a specification as well
Apache Parquet's FINITE_VECTOR logical type provides a standard representation for fixed-length vectors with non-null, finite elements. Building on that work, Delta Lake has published a draft RFC for a native vector type. The proposal uses the same Parquet layout as the vector type proposed for Iceberg v4, with the goal of keeping the formats aligned at the file level. The Delta RFC is still a draft, so its design and compatibility details may change.
The draft currently lists int, long, float, and double as element types and leaves room for future additions. In the Iceberg discussion, contributors have also asked that the set remain open so types such as float16 and int8 could be considered without defining a new outer vector type. Those lower-precision types are not a settled commitment in either format yet. Both efforts are evolving in public specifications and discussions.
Apache Spark proposes a VECTOR(N, T) SQL type
SPARK-58787, a Spark Project Improvement Proposal (SPIP), adds a native SQL type for dense, fixed-dimension numeric vectors: VECTOR(<dimension>, <coordinate type>).
For example, creating a table with an embedding column might look like this:
CREATE TABLE documents (
id BIGINT,
body STRING,
embedding VECTOR(768, FLOAT)
);Coordinates can be INT, BIGINT, FLOAT, or DOUBLE, and there's no default, so both parameters are required.
The dimension is part of the type, so VECTOR(768, FLOAT) and VECTOR(1536, FLOAT) are different types, and coordinates are never null.
Putting the dimension first follows the emerging SQL standard proposal.
The same type is VectorType(FloatType, 768) in Scala and VectorType(FloatType(), 768) in PySpark.
Conversions are explicit: a cast from an array checks the length, rejects null coordinates and coordinates that can't be cast to the target type, and reports the expected and actual dimensions when it fails. A vector always converts back to an array, and an operation that can't keep the dimension returns an array.
Spark won't infer that an existing Parquet list column is a vector; you opt in with a cast:
INSERT INTO documents
SELECT id, body, CAST(embedding_array AS VECTOR(768, FLOAT))
FROM staging_documents;The SPIP leaves NaN and infinity representable on purpose, as they are for FLOAT and DOUBLE. As a result, writes of these values to Parquet would fail since FINITE_VECTOR forbids them on disk.
This proposal is still under discussion on the Spark dev list. With FINITE_VECTOR merged, the vote is the next step, followed by the implementation.
What you can run in Spark 4.2 today
You don't need the new type to search embeddings in Spark. Spark 4.2.0 shipped seven vector functions that work on ARRAY<FLOAT>: vector_cosine_similarity, vector_inner_product, vector_l2_distance, vector_norm, vector_normalize, vector_avg, and vector_sum, all registered in Spark 4.2.0's function registry. It also added NEAREST BY joins for batch top-K search (SPARK-56395). This script uses both in a local Spark session:
from pyspark.sql import SparkSession
spark = SparkSession.builder.master("local[1]").appName("vector-search").getOrCreate()
spark.sql("""
CREATE OR REPLACE TEMP VIEW documents AS
SELECT * FROM VALUES
(1, 'Delta Lake constraints', array(0.9F, 0.1F, 0.0F)),
(2, 'Parquet encodings', array(0.1F, 0.9F, 0.1F)),
(3, 'Iceberg v4 types', array(0.0F, 0.2F, 0.9F))
AS documents(id, body, embedding)
""")
spark.sql("""
CREATE OR REPLACE TEMP VIEW queries AS
SELECT * FROM VALUES
(100, array(0.8F, 0.2F, 0.0F)),
(200, array(0.1F, 0.1F, 0.9F))
AS queries(query_id, embedding)
""")
spark.sql("""
SELECT q.query_id, d.id, d.body
FROM queries q
JOIN documents d
APPROX NEAREST 1 BY SIMILARITY vector_cosine_similarity(q.embedding, d.embedding)
ORDER BY q.query_id
""").show(truncate=False)
spark.stop()It prints the nearest document for each query:
+--------+---+----------------------+
|query_id|id |body |
+--------+---+----------------------+
|100 |1 |Delta Lake constraints|
|200 |3 |Iceberg v4 types |
+--------+---+----------------------+APPROX lets the optimizer pick a faster strategy when one exists, such as an index once Spark supports them. EXACT always computes the exact top K by brute force. A VECTOR type would give these features typed input, so a comparison between a 768-dimension column and a 1536-dimension one would show up in the schema before the query runs.
One embedding column at every layer
Here's one nullable, 768-dimension float embedding column declared at each layer, and where each piece stands:
| Layer | Declaration | Status (December 3, 2026) |
|---|---|---|
| Apache Spark | VECTOR(768, FLOAT) | SPIP open (SPARK-58787) |
| Apache Iceberg | vector(float, 768) | v4 spec change in review (#18416) |
| Delta Lake | Aligning with Iceberg's Parquet layout | Draft RFC published (delta-io/delta#8392) |
| Apache Parquet | FINITE_VECTOR(768) over a list of required floats | Merged (#624) |
| Apache Arrow | fixed_size_list<element: float not null>[768] | Parquet mapping in review (#55348) |
The parameter order differs: Spark puts the dimension first to follow the emerging SQL standard proposal, while Iceberg's vector(E, D) puts the element type first.
The table formats and engines are all mapping, or planning to map, to the same Parquet and Arrow representations, so a vector written by one engine keeps its meaning when another engine reads it.
Frequently asked questions
Do I need to rewrite my existing ARRAY<FLOAT> columns?
Only if you want the guarantees. Iceberg and Spark both treat vectors as opt-in: Iceberg doesn't promote list columns to vectors, and Spark won't infer a vector from a Parquet list. Adopting the type means writing a new vector column, for example with a cast.
Will tools that don't know FINITE_VECTOR break?
No. Writers also mark the column with Parquet's legacy LIST converted type, so an older reader sees an ordinary list of numbers.
Does FINITE_VECTOR make scans faster?
Gains will come when readers use the guarantees, such as Arrow reading the column straight into a FixedSizeList, and from consumers that no longer validate every row.
Can I store float16 or int8 embeddings?
In Parquet, yes: FINITE_VECTOR allows FLOAT16 elements, and int8 values fit in INT32 with an 8-bit INTEGER annotation. Iceberg is still deciding whether v4 exposes them as element types, and Spark's SPIP leaves low-precision coordinates out of its first version.
Where to weigh in
Parquet's part is done, and the rest is being decided on public mailing lists and pull requests right now, so this is a good time to get involved:
- Test and review the Parquet implementations in parquet-java and Arrow.
- Weigh in on Iceberg's float16 and int8 thread, and review the v4 spec change and the Java
VectorType. - Review the draft Delta Lake vector RFC.
- Comment on SPARK-58787, and watch dev@spark.apache.org for the SPIP vote.
Embeddings have been second-class data in the lakehouse, stored as generic lists and checked by convention. A vector type that means the same thing in every format and engine is how they become first-class, and it's worth getting right once.
Thanks
Many people across these projects contributed to this work. Among them, thanks to Rok Mihevc for driving FINITE_VECTOR through the Parquet community and implementing it in Arrow, to Antoine Pitrou for merging the spec change, and to Divjot Arora for the parquet-java implementation. In Iceberg, thanks to Yan Yan for the vector type proposal and spec change, to Philipp Fischbeck for the Java VectorType, and to Russell Spitzer for leading the element-type discussion. Thanks to Uroš Stanković for the Spark SPIP, to Huaxin Gao and Holden Karau for offering to help, and to Andrei Tserakhau for starting the Delta Lake RFC.
Keep reading
All posts →Apache Iceberg v4 Column Updates Are About to Change Feature Engineering
Iceberg v4 is adding column files, companion files that can hold one or more whole columns for every row of a data file and be swapped in by position at read time. This post explains why that matters for feature stores and other wide tables, where the design helps, and why the v4 work is still not something you can run in production.
All About Iceberg's File Format API: simplifying the engine/format interface and Parquet's multimodal future
Apache Iceberg's File Format API (1.11, 1.12) explained with a runnable Java program: FormatModelRegistry keyed on the closed FileFormat enum (Parquet, Avro, ORC) and an open set of engine row types (Spark InternalRow, Flink RowData, Record), ReadBuilder and dataWriteBuilder, the 'Format model is not registered' error, the compatibility kit (TCK), the Vortex PR, and why multimodal support is arriving as Parquet FILE and VECTOR types rather than new file formats.

Apache Iceberg 1.11.0 Release
Iceberg 1.11.0 lands the biggest REST catalog upgrade since the protocol was introduced, plus encryption, geospatial types, SQL UDFs, Spark 4.1 and Flink 2.1 support, and the first foundations of Format V4.
