← All notes

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

Sources

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

Permanent ID: iil:note:dpje6aaz

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.},
}

Markdown

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.

All artifact files (JSON index)

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.