Skip to content

Fix - Cassandra CDC Connector Fails with ClassCastException for Timestamp Values in Collection Columns#196

Closed
darkmatter18 wants to merge 5 commits into
datastax:masterfrom
cognitree:fix/timestamp-in-collection
Closed

Fix - Cassandra CDC Connector Fails with ClassCastException for Timestamp Values in Collection Columns#196
darkmatter18 wants to merge 5 commits into
datastax:masterfrom
cognitree:fix/timestamp-in-collection

Conversation

@darkmatter18
Copy link
Copy Markdown
Contributor

Fix

fixes #195

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • I have read the CONTRIBUTING document.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Description

The Pull request fixes the connector issue, in which Cassandra CDC (Change Data Capture) Source Connector encounters a ClassCastException when processing data from tables that contain collection columns (list, map, or set) storing timestamp values.

What's added/changed

  • Custom Marshalling method for collection fields in AbstractNativeConverter, which checks for Instant type data and converts that to long data.
  • Integrated the new marshaling methods with collection columns (list, map, or set) converters.

Checklist:

  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • Any dependent changes have been merged and published in downstream modules.

@darkmatter18
Copy link
Copy Markdown
Contributor Author

Closing this PR as #200 has the same implementation.

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.

[Connnector] Cassandra CDC Connector Fails with ClassCastException for Timestamp Values in Collection Columns

2 participants