scylladb / scylla-cdc-java

Apache License 2.0
24 stars 15 forks source link

scylla cdc library failed upon schema change #83

Open Prateekdecp opened 2 months ago

Prateekdecp commented 2 months ago

I am trying to use the scylla cdc driver library for deriving all cdc logs for a table After I added a new column to the existing table, the driver library gave me an error and crashed Method threw 'shaded.com.scylladb.cdc.driver3.driver.core.exceptions.InvalidTypeException' exception. Cannot evaluate com.scylladb.cdc.cql.driver3.Driver3RawChange.toString() Upon restart I started getting the entries as expected. Is there a fix for this?

dkropachev commented 2 months ago

I am trying to use the scylla cdc driver library for deriving all cdc logs for a table After I added a new column to the existing table, the driver library gave me an error and crashed Method threw 'shaded.com.scylladb.cdc.driver3.driver.core.exceptions.InvalidTypeException' exception. Cannot evaluate com.scylladb.cdc.cql.driver3.Driver3RawChange.toString() Upon restart I started getting the entries as expected. Is there a fix for this?

@Prateekdecp , can you please provide table definition before and after.

Prateekdecp commented 2 months ago

create table temp_keyspace.users(id primary key,name text,phone_number text); Initial table

alter table temp_keyspace.users add email text; altered table