hailin0 commented on code in PR #8724:
URL: https://github.com/apache/seatunnel/pull/8724#discussion_r1973487560
##########
seatunnel-connectors-v2/connector-kafka/src/main/java/org/apache/seatunnel/connectors/seatunnel/kafka/source/KafkaSourceConfig.java:
##########
@@ -316,4 +334,26 @@ private DeserializationSchema<SeaTunnelRow>
createDeserializationSchema(
"Unsupported format: " + format);
}
}
+
+ private TableSchema nativeTableSchema() {
+ return TableSchema.builder()
+ .column(
+ PhysicalColumn.of(
+ HEADERS,
+ new MapType<>(BasicType.STRING_TYPE,
BasicType.STRING_TYPE),
+ 0,
+ false,
+ null,
+ null))
+ .column(
+ PhysicalColumn.of(
+ KEY, PrimitiveByteArrayType.INSTANCE, 0,
false, null, null))
+ .column(PhysicalColumn.of(OFFSET, BasicType.LONG_TYPE, 0,
false, null, null))
+ .column(PhysicalColumn.of(PARTITION, BasicType.INT_TYPE, 0,
false, null, null))
+ .column(PhysicalColumn.of(TIMESTAMP, BasicType.LONG_TYPE, 0,
false, null, null))
Review Comment:
Adding TIMESTAMP_TYPE is nice for read
--
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]