typelevel / typelevel/grackle

Postgres enum support

Open
#680 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Scala
Stars
189
Forks
32
Avg merge
18h 31m
Merged PRs (30d)
37

Description

I'm trying to use a Postgres enum type and It get the following error:

ERROR: UNION types text and my_enum_type cannot be matched

The implicit Meta[MyEnumType] is defined with pgEnumString("my_enum_type", MyEnumType.fromString, _.value) and all the wiring seems to be fine.

Thank you.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the implicit Meta[MyEnumType] defined with pgEnumString("my_enum_type", MyEnumType.fromString, _.value) and reproduce the UNION error involving text and my_enum_type. Determine the expected enum behavior and identify the relevant database integration tests; done should include working Postgres enum queries without the type-mismatch error and a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgres, scala
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.