Table of Contents

Search

  1. Preface
  2. PowerExchange CDC Publisher Overview
  3. Installing and Upgrading PowerExchange CDC Publisher
  4. PowerExchange CDC Publisher Key Concepts
  5. PowerExchange Change Capture Environment
  6. Target Messaging Systems
  7. Configuring PowerExchange CDC Publisher
  8. Streaming Change Data
  9. Monitoring PowerExchange CDC Publisher
  10. Administering PowerExchange CDC Publisher
  11. Command Reference for the Command-Line Utilities
  12. Avro Schema Formats
  13. Message Reference

User Guide

User Guide

Avro Nested Schema Format

Avro Nested Schema Format

An Avro schema that uses the nested format has a main Avro record that contains a separate nested record for each type of Avro column-definition field. The schema is specific to the source object that contains the defined columns.
The following nested schema defines two columns in four records:
{“name” : “columns“ , “type" : "record", fields" : [ { {"name" : "COL1", "type" : [ "null", "string" ], "doc" : "...", "default" : null} {"name" : "COL2", "type" : [ "null", "string" ], "doc" : "...", "default" : null}}] {“name” : “isPresent“ , “type" : "record", fields" : [ { {"name" : "COL1_Present", "type" : "boolean", "doc" : …} {"name" : "COL2_Present", "type" : "boolean", "doc" : …} }] {“name” : “beforeImageValues“ , “type" : "record", fields" : [ { {"name" : "COL1_BeforeImage", "type" : [ "null", "string" ],"doc" : … } {"name" : "COL2_BeforeImage", "type" : [ "null", "string" ],"doc" : … } }] {“name” : “isPresentIndicatorsForBeforeImages“ , “type" : "record", fields" : [ { {"name" : "COL1_BeforeImage_Present", "type" : "boolean", "doc" : …}

0 COMMENTS

We’d like to hear from you!