dyp12 commented on code in PR #9701:
URL: https://github.com/apache/seatunnel/pull/9701#discussion_r2284413817
##########
seatunnel-formats/seatunnel-format-json/src/test/java/org/apache/seatunnel/format/json/ogg/OggJsonSerDeSchemaTest.java:
##########
@@ -206,27 +206,26 @@ public void runTest(List<String> lines,
OggJsonDeserializationSchema deserializa
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\":106,\"name\":\"hammer\",\"description\":\"16oz carpenter's
hammer\",\"weight\":1.0},\"type\":\"DELETE\"}",
-
"{\"data\":{\"id\":106,\"name\":\"hammer\",\"description\":\"18oz carpenter
hammer\",\"weight\":1.0},\"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\":5.1},\"type\":\"INSERT\"}",
-
"{\"data\":{\"id\":110,\"name\":\"jacket\",\"description\":\"water resistent
white wind breaker\",\"weight\":0.2},\"type\":\"INSERT\"}",
-
"{\"data\":{\"id\":111,\"name\":\"scooter\",\"description\":\"Big 2-wheel
scooter \",\"weight\":5.18},\"type\":\"INSERT\"}",
-
"{\"data\":{\"id\":110,\"name\":\"jacket\",\"description\":\"water resistent
white wind breaker\",\"weight\":0.2},\"type\":\"DELETE\"}",
-
"{\"data\":{\"id\":110,\"name\":\"jacket\",\"description\":\"new water
resistent white wind breaker\",\"weight\":0.5},\"type\":\"INSERT\"}",
-
"{\"data\":{\"id\":111,\"name\":\"scooter\",\"description\":\"Big 2-wheel
scooter \",\"weight\":5.18},\"type\":\"DELETE\"}",
-
"{\"data\":{\"id\":111,\"name\":\"scooter\",\"description\":\"Big 2-wheel
scooter \",\"weight\":5.17},\"type\":\"INSERT\"}",
-
"{\"data\":{\"id\":111,\"name\":\"scooter\",\"description\":\"Big 2-wheel
scooter \",\"weight\":5.17},\"type\":\"DELETE\"}");
-
+
"{\"data\":{\"id\":101,\"name\":\"scooter\",\"description\":\"Small 2-wheel
scooter\",\"weight\":3.14},\"type\":\"INSERT\",\"table\":\"..test\",\"op_ts\":1589384406000}",
Review Comment:
> why table is `..test`?
'..test' is because of db and schema is null
--
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]