Open yhhongyang opened 8 months ago
Possible solution: Maybe add more data structures for PointValue
data class StreamsPointCartesian(override val crs: String, val x: Double, val y: Double): StreamsPoint()
data class StreamsPointCartesian3D(override val crs: String, val x: Double, val y: Double, val z: Double): StreamsPoint()
data class StreamsPointWgs(override val crs: String, val latitude: Double, val longitude: Double): StreamsPoint()
data class StreamsPointWgs3D(override val crs: String, val latitude: Double, val longitude: Double, val height: Double): StreamsPoint()
Description
In the source instance, create a node with a field value is 2D point, it will generate a Kafka payload like this
As the value of the
height
is null, in the sink instance, null values cannot be deserialized into correct PointValue, it will throw exception like thisMaybe in the source side, if the points are in 2D, the Kafka payload should not include height field.
Expected Behavior (Mandatory)
Nodes that has a field whose value is 2D point, can be successfully sinked to another Neo4j instance
Actual Behavior (Mandatory)
Currently, in the sink instance, it will throw this kind of exceptions when it handle kafka event that contains 2D point
The root cause of this error is
Currently used versions
Versions