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 Fields That Define a Source Column

Avro Fields That Define a Source Column

In an Avro flat or nested schema, the following four fields define each source column:
  • Column definition:
    {"name" : "COL1", "type" : [ "null", "string" ], "doc" : "...", "default" : null}
  • Column value is-present indicator:
    {"name" : "COL1_Present", "type" : "boolean", "doc" : "Contains true when the value of field COL1 is present in the change data stream", "default" : false}
  • Column before image:
    {"name" : "COL1_BeforeImage", "type" : [ "null", "string" ],"doc" : "Contains the before image of field COL1", "default" : null}
  • Column before image is-present indicator:
    {"name" : "COL1_BeforeImage_Present", "type" : "boolean", "doc" : "Contains true when the value of field COL1_OLD is present.", "default" : false}
For example, two columns named "COL1" and "COL2" have the following Avro definitions:
{"name" : "COL1", "type" : [ "null", "string" ], "doc" : "...", "default" : null} {"name" : "COL1_Present", "type" : "boolean", "doc" : …} {"name" : "COL1_BeforeImage", "type" : [ "null", "string" ],"doc" : … } {"name" : "COL1_BeforeImage_Present", "type" : "boolean", "doc" : …} {"name" : "COL2", "type" : [ "null", "string" ], "doc" : "...", "default" : null} {"name" : "COL2_Present", "type" : "boolean", "doc" : …} {"name" : "COL2_BeforeImage", "type" : [ "null", "string" ],"doc" : … } {"name" : "COL2_BeforeImage_Present", "type" : "boolean", "doc" : …}

0 COMMENTS

We’d like to hear from you!