Skip to content

DCC Schema Refresh Fix#1

Open
chrisw-instaclustr wants to merge 15 commits into1.5-without-insta-changesfrom
1.5
Open

DCC Schema Refresh Fix#1
chrisw-instaclustr wants to merge 15 commits into1.5-without-insta-changesfrom
1.5

Conversation

@chrisw-instaclustr
Copy link
Copy Markdown

This is a diff against a branch that I created by checking out the commit before Stefan's first one and then cherrypicking the other 2 subsequent commits to 1.5 made by Debezium Builder. I think that should give a good basis to see the changes.

We probably don't need to merge this PR. We can just use it as a locus for comments.

Comment thread pom.xml
<groupId>io.debezium</groupId>
<artifactId>debezium-parent</artifactId>
<version>1.5.0-SNAPSHOT</version>
<version>1.5.0.Final</version>
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Not sure why these .Finals are showing up as diff - they are the same on the target branch.

typeMap.put(DataType.Name.TUPLE, new TupleTypeConverter());
typeMap.put(DataType.Name.UDT, new UserTypeConverter());
typeMap.put(DataType.Name.UUID, new BasicTypeConverter<>(UUIDType.instance));
typeMap.put(DataType.Name.VARINT, new BasicTypeConverter<>(IntegerType.instance));
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

We're pretty confident in this side of the type conversion stuff - varint corresponds to IntegerType in the CQL code in C*.

Comment thread src/main/java/io/debezium/connector/cassandra/SchemaProcessor.java Outdated
tmp.put(DoubleType.class, new BasicTypeDeserializer(CassandraTypeKafkaSchemaBuilders.DOUBLE_TYPE));
tmp.put(DecimalType.class, new BasicTypeDeserializer(CassandraTypeKafkaSchemaBuilders.DOUBLE_TYPE));
tmp.put(Int32Type.class, new BasicTypeDeserializer(CassandraTypeKafkaSchemaBuilders.INT_TYPE));
tmp.put(IntegerType.class, new BasicTypeDeserializer(CassandraTypeKafkaSchemaBuilders.LONG_TYPE));
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This is likely borked - I don't think a long will be able to hold bigger IntegerType values.

Comment thread src/test/java/io/debezium/connector/cassandra/CommitLogProcessorTest.java Outdated
Comment thread src/test/java/io/debezium/connector/cassandra/CommitLogProcessorTest.java Outdated
chrisw-instaclustr and others added 3 commits April 13, 2021 08:34
…ndra into 1.5

# Conflicts:
#	REPORT.adoc
#	src/main/java/io/debezium/connector/cassandra/SchemaProcessor.java
#	src/test/java/io/debezium/connector/cassandra/CommitLogProcessorTest.java
#	src/test/java/io/debezium/connector/cassandra/SnapshotProcessorTest.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants