Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postgres-cdc: postgres enum data type cannot ingest into RW as varchar #16392

Closed
StrikeW opened this issue Apr 19, 2024 · 0 comments · Fixed by #16423
Closed

Postgres-cdc: postgres enum data type cannot ingest into RW as varchar #16392

StrikeW opened this issue Apr 19, 2024 · 0 comments · Fixed by #16423
Assignees
Labels
type/bug Something isn't working
Milestone

Comments

@StrikeW
Copy link
Contributor

StrikeW commented Apr 19, 2024

Describe the bug

postgres enum data type cannot ingest into RW as varchar

reported by a customer.

Error message/log

risingwave-standalone     | 2024-04-18T01:59:36.84041242Z ERROR   rw-streaming actor{otel.name="Actor 178" actor_id=178 prev_epoch=6302621750067200 curr_epoch=6302621815799808}:executor{otel.name="StreamCdcScan B200002715"}: risingwave_connector::parser::postgres: parse column failed column="source" error=error deserializing column 1: cannot convert between the Rust type `core::option::Option<alloc::string::String>` and the Postgres type `event_sources` suppressed_count=3

event_sources is a enum created by:

CREATE TYPE event_sources AS ENUM ('A', 'B', 'C', 'D', 'E');

To Reproduce

CREATE TABLE multiverse.source_priorities (
  id integer PRIMARY KEY,
  source varchar
) FROM db TABLE "public.source";

Expected behavior

No response

How did you deploy RisingWave?

No response

The version of RisingWave

No response

Additional context

No response

@StrikeW StrikeW added the type/bug Something isn't working label Apr 19, 2024
@github-actions github-actions bot added this to the release-1.9 milestone Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants