Annotate Parquet primitive types with logical types
Answer: The logical types page specifies all annotations. Strings, for example, use the primitive type BYTE_ARRAY with a STRING annotation. LogicalType stores that annotation. ConvertedType is the older representation and is superseded by LogicalType.
Annotations
The specification covers all logical types. A string is stored with primitive type BYTE_ARRAY plus a STRING annotation. LogicalType is the field that stores the type annotation. Some annotations also require additional metadata fields and rules for those fields.
ConvertedType is an older representation of the same annotations: an enum of all available annotations. Each section mentions compatibility considerations. STRING corresponds to the UTF8 ConvertedType. Implementations must not write values larger than the annotation allows.
| LogicalType | ConvertedType | |---|---| | type annotation | older representation | | STRING | UTF8 ConvertedType | | DecimalType | annotation in logicalType |
Thrift fields
LogicalType supersedes ConvertedType. See LogicalTypes.md for conversion between ConvertedType and LogicalType. The optional converted_type field is deprecated for decimal data; use the DecimalType annotation in logicalType instead. The value of the decimal is the value times 10 to the minus scale.
See also
Claims
- id: C1 claim: Strings are stored as BYTE_ARRAY values with a STRING annotation. source: S1 evidence: "For example, strings are stored with the primitive type BYTE_ARRAY with a STRING annotation."
- id: C2 claim: LogicalType stores the type annotation in the Parquet format. source: S1 evidence: "The parquet format's LogicalType stores the type annotation."
- id: C3 claim: ConvertedType is superseded by LogicalType. source: S2 evidence: "ConvertedType is superseded by LogicalType."
Sources
- [S1] Parquet Logical Types. Apache Parquet docs. https://parquet.apache.org/docs/file-format/types/logicaltypes/ . License: Apache-2.0. Accessed 2026-11-20.
- [S2] parquet.thrift (LogicalType). Apache parquet-format. https://raw.githubusercontent.com/apache/parquet-format/master/src/main/thrift/parquet.thrift . License: Apache-2.0. Accessed 2026-11-20.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Apache Parquet docs, Parquet Logical Types; Apache parquet-format, parquet.thrift (LogicalType). Apache-2.0. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Apache Parquet docs, Parquet Logical Types; Apache parquet-format, parquet.thrift (LogicalType). Apache-2.0.
Cite this
iinventedlight. 2026. "Annotate Parquet primitive types with logical types." iinventedlight Library, iil:note:dpje6aaz, version of 2026-11-20. https://iinventedlight.com/library/notes/parquet-logical-types/. License: CC-BY-4.0.
@misc{iil_note_dpje6aaz,
author = {{iinventedlight}},
title = {{Annotate Parquet primitive types with logical types}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-20},
url = {https://iinventedlight.com/library/notes/parquet-logical-types/},
note = {Permanent ID iil:note:dpje6aaz. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- parquet-logical-types.table.json (table; CC-BY-4.0)
- parquet-logical-types.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/parquet-logical-types.md.