Skip to content

Fix ValueError on unlisted CrateDB column type identifiers - #830

Merged
bgunebakan merged 6 commits into
mainfrom
bilal/829-datatype-enum-reads-raise-valueerror
Sep 14, 2026
Merged

bgunebakan merged 6 commits into
mainfrom
bilal/829-datatype-enum-reads-raise-valueerror

Conversation

@bgunebakan

@bgunebakan bgunebakan commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Summary of the changes / Why this is an improvement

  • Added the five missing members to DataType.
  • Added _resolve() that returns None for identifiers unknown to this client instead of raising error.
  • Add UUID support to DefaultTypeConverter and update documentation

It is out of the scope of the issue ticket but I added a converter for DataType.UUID in this PR as well, because the enum member is introduced here.Before the round trip was asymmetric. uuid.UUID is already accepted as a parameter on the write side, but reads came back as str. DefaultTypeConverter now decodes UUID columns to uuid.UUID.

Checklist

@bgunebakan bgunebakan self-assigned this Sep 10, 2026
@bgunebakan bgunebakan added the bug label Sep 10, 2026

@florinutz florinutz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good stuff!

Comment thread CHANGES.rst Outdated
@mergify

mergify Bot commented Sep 14, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

Comment thread src/crate/client/converter.py Outdated
@bgunebakan
bgunebakan merged commit 6486793 into main Sep 14, 2026
17 checks passed
@bgunebakan
bgunebakan deleted the bilal/829-datatype-enum-reads-raise-valueerror branch September 14, 2026 15:54
@bgunebakan bgunebakan mentioned this pull request Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DataType enum: reads raise ValueError on five documented wire type IDs

3 participants