My Oracle Support Banner

OGGBD delivery- How to timestamp format to logical type in avro metadata (Doc ID 2906919.1)

Last updated on NOVEMBER 02, 2022

Applies to:

Oracle GoldenGate Big Data and Application Adapters - Version 19.1.0.0.1 and later
Information in this document applies to any platform.

Goal

 Requirement to change the timestamp format to logical type instead of the default string format

 

Example :

Current format for timestamp is

++ At source table

Column                        c            Datatype

PROCESS_TIMESTAMP NOT NULL TIMESTAMP

++ At mdp file used

{"name": "PROCESS_TIMESTAMP", "type":
{"type":"long","logicalType":"timestamp-millis"}

++ At avro header file

{"name":"PROCESS_TIMESTAMP","type":["null","string"]

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.