I have setup a JDBC Oracle Source Connector in Kafka Connect and I have a timestamp column in Oracle table whose value is set as date format "21-MAR-18 05.39.44.0194990 AM".
All the data from the Oracle table is fetched into the Kafka topics, but the value of column with date format (timestamp column) in oracle table is converted to milliseconds and displayed in the topic as milliseconds value. I would like to have the date format received as it is in Oracle table.
{
"name":"JDBC_CONN_1",
"config": {
"connector.class": "io.confluent.connect.jdbc.JdbcSourceConnector",
"connection.url": "jdbc:oracle:thin:@<hostname>:1521/<servicename>",
"connection.user": "User",
"connection.password": "Password",
"table.whitelist": "Table_Name",
"catalog.pattern": "",
"schema.pattern": "Schema_Name",
"mode": "bulk",
"poll.interval.ms": "1000",
"numeric.mapping":"best_fit",
"topic.prefix": "JDBC_CONN_1"
}
}
DB Table column:
UPDATED_ON TIMESTAMP(6) Not Null
column value - 27-MAR-18 05.39.44.0194490 AM
Value in Topic:1522129184019 (equivalent milli second format)