dyp12 commented on code in PR #9701:
URL: https://github.com/apache/seatunnel/pull/9701#discussion_r2278147275
##########
seatunnel-e2e/seatunnel-connector-v2-e2e/connector-kafka-e2e/src/test/java/org/apache/seatunnel/e2e/connector/kafka/KafkaFormatIT.java:
##########
@@ -562,20 +562,20 @@ private void checkCanalFormat() {
private void checkMaxWellFormat() {
List<String> expectedResult =
Arrays.asList(
-
"{\"data\":{\"id\":101,\"name\":\"scooter\",\"description\":\"Small 2-wheel
scooter\",\"weight\":\"3.14\"},\"type\":\"INSERT\"}",
- "{\"data\":{\"id\":102,\"name\":\"car
battery\",\"description\":\"12V car
battery\",\"weight\":\"8.1\"},\"type\":\"INSERT\"}",
- "{\"data\":{\"id\":103,\"name\":\"12-pack drill
bits\",\"description\":\"12-pack of drill bits with sizes ranging from #40 to
#3\",\"weight\":\"0.8\"},\"type\":\"INSERT\"}",
-
"{\"data\":{\"id\":104,\"name\":\"hammer\",\"description\":\"12oz carpenter's
hammer\",\"weight\":\"0.75\"},\"type\":\"INSERT\"}",
-
"{\"data\":{\"id\":105,\"name\":\"hammer\",\"description\":\"14oz carpenter's
hammer\",\"weight\":\"0.875\"},\"type\":\"INSERT\"}",
-
"{\"data\":{\"id\":106,\"name\":\"hammer\",\"description\":\"16oz carpenter's
hammer\",\"weight\":\"1.0\"},\"type\":\"INSERT\"}",
-
"{\"data\":{\"id\":107,\"name\":\"rocks\",\"description\":\"box of assorted
rocks\",\"weight\":\"5.3\"},\"type\":\"INSERT\"}",
-
"{\"data\":{\"id\":108,\"name\":\"jacket\",\"description\":\"water resistent
black wind breaker\",\"weight\":\"0.1\"},\"type\":\"INSERT\"}",
- "{\"data\":{\"id\":109,\"name\":\"spare
tire\",\"description\":\"24 inch spare
tire\",\"weight\":\"22.2\"},\"type\":\"INSERT\"}",
-
"{\"data\":{\"id\":101,\"name\":\"scooter\",\"description\":\"Small 2-wheel
scooter\",\"weight\":\"3.14\"},\"type\":\"DELETE\"}",
-
"{\"data\":{\"id\":101,\"name\":\"scooter\",\"description\":\"Small 2-wheel
scooter\",\"weight\":\"4.56\"},\"type\":\"INSERT\"}",
-
"{\"data\":{\"id\":107,\"name\":\"rocks\",\"description\":\"box of assorted
rocks\",\"weight\":\"5.3\"},\"type\":\"DELETE\"}",
-
"{\"data\":{\"id\":107,\"name\":\"rocks\",\"description\":\"box of assorted
rocks\",\"weight\":\"7.88\"},\"type\":\"INSERT\"}",
- "{\"data\":{\"id\":109,\"name\":\"spare
tire\",\"description\":\"24 inch spare
tire\",\"weight\":\"22.2\"},\"type\":\"DELETE\"}");
+
"{\"data\":{\"id\":101,\"name\":\"scooter\",\"description\":\"Small 2-wheel
scooter\",\"weight\":\"3.14\"},\"type\":\"INSERT\",\"tableId\":\"\",\"ts\":null}",
+ "{\"data\":{\"id\":102,\"name\":\"car
battery\",\"description\":\"12V car
battery\",\"weight\":\"8.1\"},\"type\":\"INSERT\",\"tableId\":\"\",\"ts\":null}",
+ "{\"data\":{\"id\":103,\"name\":\"12-pack drill
bits\",\"description\":\"12-pack of drill bits with sizes ranging from #40 to
#3\",\"weight\":\"0.8\"},\"type\":\"INSERT\",\"tableId\":\"\",\"ts\":null}",
+
"{\"data\":{\"id\":104,\"name\":\"hammer\",\"description\":\"12oz carpenter's
hammer\",\"weight\":\"0.75\"},\"type\":\"INSERT\",\"tableId\":\"\",\"ts\":null}",
+
"{\"data\":{\"id\":105,\"name\":\"hammer\",\"description\":\"14oz carpenter's
hammer\",\"weight\":\"0.875\"},\"type\":\"INSERT\",\"tableId\":\"\",\"ts\":null}",
Review Comment:
> why ts value is null?
CanalJsonDeserializationSchema read data remove ts field, so when sink ,
the ts field is null
<img width="1152" height="239" alt="image"
src="https://github.com/user-attachments/assets/9932d699-86dd-4d6b-afa7-e6fad7aecd44"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]