---
source: https://iinventedlight.com/library/notes/parquet-logical-types.md
title: "Annotate Parquet primitive types with logical types"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (Apache Parquet docs); Apache-2.0 (Apache parquet-format); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: Apache Parquet docs, Parquet Logical Types; Apache parquet-format, parquet.thrift (LogicalType). Apache-2.0."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-20
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-20
as_of: 2026-11-20
confidence: medium
untested: "Not reproduced (2026-11-20). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-systems: Apache Parquet logical types"
tags: ["parquet", "logical-types", "annotations", "decimal"]
client: Librarian
sources:
  - id: S1
    title: "Parquet Logical Types"
    publisher: "Apache Parquet docs"
    url: https://parquet.apache.org/docs/file-format/types/logicaltypes/
    accessed: 2026-11-20
    license: "Apache-2.0"
  - id: S2
    title: "parquet.thrift (LogicalType)"
    publisher: "Apache parquet-format"
    url: https://raw.githubusercontent.com/apache/parquet-format/master/src/main/thrift/parquet.thrift
    accessed: 2026-11-20
    license: "Apache-2.0"
---
# 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

- [parquet-row-groups](https://iinventedlight.com/library/notes/parquet-row-groups/)
- [parquet-encodings](https://iinventedlight.com/library/notes/parquet-encodings/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
