-
Notifications
You must be signed in to change notification settings - Fork 71
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
fixes #537: Kafka sink connector does not work with CUD ingestion strategy and Avro format data #582
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a couple of minor things.
@@ -1351,6 +1353,54 @@ class Neo4jSinkTaskTest { | |||
} | |||
} | |||
|
|||
@Test | |||
fun `should successfully parse nested timestamps`() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this just timestamps, or more general sub-maps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is general sub-maps
} | ||
|
||
@Test | ||
fun `should be able to process a CUD format AVRO structure`() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we also include a test for relationship CUD format?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
…ingestion strategy and Avro format data
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fix Kafka sink connector to work with CUD ingestion strategy and Avro format data. See neo4j-contrib/neo4j-streams#582
Fix Kafka sink connector to work with CUD ingestion strategy and Avro format data. See neo4j-contrib/neo4j-streams#582
Fix Kafka sink connector to work with CUD ingestion strategy and Avro format data. See neo4j-contrib/neo4j-streams#582
Fix Kafka sink connector to work with CUD ingestion strategy and Avro format data. See neo4j-contrib/neo4j-streams#582
Fix Kafka sink connector to work with CUD ingestion strategy and Avro format data. See neo4j-contrib/neo4j-streams#582 Co-authored-by: Andrea Santurbano <[email protected]>
Fixes #537
The bug was related to the fact that the strategy expects a Map<String, Any?> (with the raw values) instead it gets a Map<String, Value>. I changed the converter in order to return Map<String, Any?> (with the raw values)
Proposed Changes (Mandatory)
A brief list of proposed changes in order to fix the issue: