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

mysql-cdc: text column cannot be applied to integer column #29361

Open
nrainer-materialize opened this issue Sep 4, 2024 · 0 comments
Open
Labels
C-bug Category: something is broken T-mysql Theme: MySQL source

Comments

@nrainer-materialize
Copy link
Contributor

What version of Materialize are you using?

a8068e6

What is the issue?

Unlike pg-cdc, mysql-cdc does not allow to apply text column to an integer column.

CREATE TABLE table_f (pk INTEGER PRIMARY KEY, f2 ENUM ('var0', 'var1'));
INSERT INTO table_f VALUES (1, 'var0');
INSERT INTO table_f VALUES (2, 'var1');

> ALTER SOURCE mz_source ADD SUBSOURCE public.table_f WITH (TEXT COLUMNS [public.table_f.f2, public.table_f.pk]);
'int' for pk."public"."table_f": ERROR: MYSQL source validation: referenced tables use unsupported types
@nrainer-materialize nrainer-materialize added C-bug Category: something is broken T-mysql Theme: MySQL source labels Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: something is broken T-mysql Theme: MySQL source
Projects
None yet
Development

No branches or pull requests

1 participant