Skip to content

add support for reading and writing UUID fields#10

Open
jze wants to merge 1 commit intostrategicblue:masterfrom
jze:uuid
Open

add support for reading and writing UUID fields#10
jze wants to merge 1 commit intostrategicblue:masterfrom
jze:uuid

Conversation

@jze
Copy link

@jze jze commented Jan 17, 2026

You can specify UUID fields semantically correctly as

Types.required(FIXED_LEN_BYTE_ARRAY)
  .length(16)
  .as(LogicalTypeAnnotation.uuidType())

The ParquetWriter will write these UUID fields as FIXED_LEN_BYTE_ARRAY(16)

When a parquet file contains a FIXED_LEN_BYTE_ARRAY(16) with the logical type annotation "uuid", a UUID object (instead of a String) will be returned.

Closes #9

You can specify UUID fields semantically correctly as

Types.required(FIXED_LEN_BYTE_ARRAY)
  .length(16)
  .as(LogicalTypeAnnotation.uuidType())

The ParquetWriter will write these UUID fields as FIXED_LEN_BYTE_ARRAY(16)

When a parquet file contains a FIXED_LEN_BYTE_ARRAY(16) with the logical type
annotation "uuid", a UUID object (instead of a String) will be returned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for UUID columns

1 participant