Repository navigation
Introduces a new LogicalType: FILE - #585
Merged
Merged
Conversation
emkornfield
reviewed
Jun 10, 2026
emkornfield
reviewed
Jun 10, 2026
emkornfield
approved these changes
Jun 10, 2026
emkornfield
left a comment
Contributor
There was a problem hiding this comment.
Looks reasonable to me a few minor comments for clarification.
RussellSpitzer
approved these changes
Jun 10, 2026
danielcweeks
approved these changes
Jun 10, 2026
etseidl
reviewed
Jun 10, 2026
etseidl
left a comment
Contributor
There was a problem hiding this comment.
Just a few questions I have after reviewing the Rust implementation.
wgtmac
reviewed
Jun 11, 2026
divjotarora
reviewed
Jun 11, 2026
rdblue
reviewed
Jun 11, 2026
rdblue
reviewed
Jun 11, 2026
rdblue
reviewed
Jun 11, 2026
rdblue
reviewed
Jun 11, 2026
rdblue
reviewed
Jun 11, 2026
alkis
reviewed
Jun 17, 2026
CTTY
reviewed
Jun 17, 2026
pitrou
reviewed
Jun 30, 2026
etseidl
reviewed
Jul 2, 2026
alkis
reviewed
Jul 6, 2026
This was referenced Jul 6, 2026
Contributor
Author
dejankrak-db
added a commit
to dejankrak-db/delta
that referenced
this pull request
Jul 23, 2026
…o#585 @ 4223744) Align with apache/parquet-format#585 (commit 4223744): the FILE locator field was renamed from `path` to `uri`. Rename the field throughout the field table, resolution table, Parquet examples, writer/reader requirements, statistics, and prose. Generic uses of "path" (field path, absolute path) are unchanged, as is the DBR-specific __FILE_TYPE_MODE storage-mode key. Co-authored-by: Isaac
rok
approved these changes
Jul 23, 2026
| * MAP - undefined | ||
| * VARIANT - undefined | ||
| * GEOMETRY - undefined | ||
| * GEOGRAPHY - undefined |
Member
There was a problem hiding this comment.
Suggested change
| * GEOGRAPHY - undefined | |
| * FILE - undefined | |
Comment on lines
+757
to
+758
| can be renamed or relocated as a single unit. | ||
|
|
Member
There was a problem hiding this comment.
Suggested change
| can be renamed or relocated as a single unit. | |
| can be renamed or relocated as a single unit. | |
| Parquet files containing self-references must not use Parquet modular encryption. | |
| Self-referenced byte ranges are not Parquet encryption modules and therefore cannot | |
| be encrypted or authenticated independently. Encryption of external files referenced | |
| by `uri` is outside the scope of the Parquet format. | |
dejankrak-db
added a commit
to dejankrak-db/delta
that referenced
this pull request
Jul 24, 2026
…@ f241be8) Align with apache/parquet-format#585 (commit f241be8): add the modular-encryption restriction -- data files containing self-references must not use Parquet modular encryption, since self-referenced byte ranges are not encryption modules and cannot be encrypted/authenticated independently. Co-authored-by: Isaac
Contributor
|
Vote passed: https://lists.apache.org/thread/lbtdvq63382fgl2049zb6vn396h9lmfz and all comments addressed. going to merge. |
dejankrak-db
added a commit
to dejankrak-db/delta
that referenced
this pull request
Jul 26, 2026
…rged) apache/parquet-format#585 is now merged. The FILE spec content is unchanged from the last sync (commit f241be8), so no semantic updates are needed. Update references to point at the stable LogicalTypes.md#file spec and drop the "proposed" framing now that the type is part of the Parquet format. Co-authored-by: Isaac
This was referenced Jul 30, 2026
This was referenced Aug 17, 2026
1 of 6 tasks
1 of 2 tasks
tdas
pushed a commit
to delta-io/delta
that referenced
this pull request
Sep 17, 2026
#### Which Delta project/connector is this regarding? - [ ] Spark - [ ] Standalone - [ ] Flink - [ ] Kernel - [x] Other (Protocol) ## Description This adds a protocol RFC for a new `file` data type. A `file` value stores a reference to a range of bytes that is located either **inline** in the value or in an **external** file at an absolute URI. It targets file-inventory, manifest, and unstructured-data use cases (e.g. images/audio in object storage) that are increasingly common with AI/ML workloads. The type follows the Parquet [`FILE` logical type](https://github.com/apache/parquet-format/blob/master/LogicalTypes.md#file) (introduced in [apache/parquet-format#585](apache/parquet-format#585), now merged): the field set (`uri`, `offset`, `size`, `content_type`, `checksum`, `inline`) and the physical encoding are defined by the Parquet spec, so a Delta `file` column round-trips through Parquet without loss. Delta adds a single restriction on top: any **`uri` must be absolute**. The RFC does not restate the Parquet spec; it links to it and focuses on the Delta schema representation and feature interactions. > Note: the Parquet `FILE` type is inline-or-external only. An earlier revision also allowed a *self-reference* (a byte range within the containing data file); that form was removed from the specification in [apache/parquet-format#603](apache/parquet-format#603), so it is not a Delta-specific restriction. This RFC follows the current spec. Design doc: [[DESIGN] Introducing a new "File" logical type to Parquet](https://docs.google.com/document/d/1AiwrstqkwkBoOZqgOkm9JGwSMcNeHyLR7EEj1CVqpZQ/edit) The RFC introduces: - a new `fileType` table feature (Reader Version 3 / Writer Version 7, readers and writers); - a new top-level `file` type in the schema serialization format — serialized as a single type-name string like `variant` (it is **not** one of the primitive types), though physically a group (and not interchangeable with a `struct`); - the mapping to the Parquet `FILE` logical type (a group with the six optional fields), by reference to the Parquet specification; in a Delta table a value resolves either **inline** or from an **external** absolute `uri` (`offset`/`size` designate a byte range only within the referenced file), and when both `inline` and a locator are present a reader may resolve from either; - **addressable fields**: `uri`, `offset`, `size`, `content_type`, and `checksum` are addressable in expressions (clustering, CHECK constraints, and generated columns); `inline` holds the raw bytes and is **not** addressable in expressions (though statistics are still collected on it — see below); - per-leaf statistics — `nullCount` on **all** sub-fields (`uri`/`offset`/`size`/`content_type`/`checksum`/`inline`, aligning with the Iceberg `FILE` spec), and `minValues`/`maxValues` on `uri`/`offset`/`size`/`content_type` (not `checksum` or `inline`) — enabling data skipping on file-inventory tables filtered by URI prefix; - reserved field IDs for the sub-fields at fixed offsets (`uri` +1 … `inline` +6), matching the Iceberg `FILE` spec so field IDs align when read as Iceberg or when field-ID-keyed statistics (AMT) are used; - **referenced files are external to the table and not under its management** — `VACUUM` does not treat them as table data, `CLONE` does not copy them, and resolving a `uri` to a physical location is owned by the engine/catalog; - **time travel and Change Data Feed** semantics — inline bytes live in the data file and time-travel with the table, while externally-referenced (`uri`) bytes live outside the table and carry no guarantee; - compatibility notes with partitioning, clustering (on comparable addressable leaf fields), generated columns and CHECK constraints (via addressable leaf fields), default values (a `file` column must default to `NULL`), Change Data Feed, Iceberg Compatibility (not permitted in V1/V2/V3, since Iceberg has no equivalent type — support is targeted for Iceberg V4), Type Widening (no change to/from `file`), and map keys (`file` cannot be a map key; array element / map value are allowed). This is a documentation-only change adding `protocol_rfcs/file-type.md` and listing it in `protocol_rfcs/README.md`. see #7147 --------- Co-authored-by: dejankrak-db <184246885+dejankrak-db@users.noreply.github.com> Co-authored-by: Isaac <no-reply@databricks.com>
gunnarmorling
added a commit
to gunnarmorling/parquet-testing
that referenced
this pull request
Oct 16, 2026
Two fixtures for the FILE logical type (apache/parquet-format#585, #603): every form of reference one per row, and the group shapes the specification allows besides the full group (subsets, reordered children, REQUIRED, list elements and map values).
2 tasks
gunnarmorling
added a commit
to gunnarmorling/parquet-testing
that referenced
this pull request
Nov 14, 2026
Two fixtures for the FILE logical type (apache/parquet-format#585, #603): every form of reference one per row, and the group shapes the specification allows besides the full group (subsets, reordered children, REQUIRED, list elements and map values).
Open
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
Introduces a new type called File as a typed FileReference. The design document is here.
The motivation is as follows:
What changes are included in this PR?
Introduces the specification for FileType.
Do these changes have PoC implementations?
Yes:
FILElogical type arrow-rs#10109