Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Add a clarification in the spec regarding full name restrictions #10883

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions format/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ Tables may also define a property `schema.name-mapping.default` with a JSON name
Field mapping fields are constrained by the following rules:

* A name may contain `.` but this refers to a literal name, not a nested field. For example, `a.b` refers to a field named `a.b`, not child field `b` of field `a`.
* Within a given schema, a field's full name is defined as the concatenation of parent field names with nested fields using `.` as a delimiter. These full names must be unique within a schema. For example, you can have a field `a` with a nested field `b` under it, or a root field named `a.b`, but not both simultaneously.
* Each child field should be defined with their own field mapping under `fields`.
* Multiple values for `names` may be mapped to a single field ID to support cases where a field may have different names in different data files. For example, all Avro field aliases should be listed in `names`.
* Fields which exist only in the Iceberg schema and not in imported data files may use an empty `names` list.
Expand Down