Skip to content

Instantly share code, notes, and snippets.

@mhowlett
Created September 3, 2019 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhowlett/1d7518c23c8f5462a6d1ebbe81cbffb6 to your computer and use it in GitHub Desktop.
Save mhowlett/1d7518c23c8f5462a6d1ebbe81cbffb6 to your computer and use it in GitHub Desktop.
{
"type": "record",
"name": "UpdatedTable",
"namespace": "io.confluent.test",
"fields": [
{
"name": "source",
"type": [
"null",
{
"type": "record",
"name": "SourceMeta",
"doc": "a doc string",
"fields": [
{
"name": "clientId",
"type": [
"null",
{
"type": "string",
"avro.java.string": "String"
}
],
"default": null
},
{
"name": "dsn",
"type": [
"null",
{
"type": "string",
"avro.java.string": "String"
}
],
"default": null
},
{
"name": "dbVersion",
"type": [
"null",
{
"type": "string",
"avro.java.string": "String"
}
],
"doc": "a doc string",
"default": null
},
{
"name": "dbPatch",
"type": [
"null",
{
"type": "string",
"avro.java.string": "String"
}
],
"doc": "a doc string",
"default": null
},
{
"name": "pid",
"type": [ "null", "long" ],
"doc": "a doc string",
"default": null
},
{
"name": "tid",
"type": [ "null", "long" ],
"doc": "a doc string",
"default": null
},
{
"name": "sequenceId",
"type": "long",
"doc": "a doc string"
},
{
"name": "transactionId",
"type": "long",
"doc": "a doc string",
"default": 0
},
{
"name": "systemTimeMS",
"type": "long",
"doc": "a doc string",
"default": 0
},
{
"name": "hasBeenRepublished",
"type": "boolean",
"doc": "a doc string",
"default": false
},
{
"name": "dsnVersion",
"type": "int",
"doc": "a doc string",
"default": 0
},
{
"name": "sourceMachine",
"type": {
"type": "record",
"name": "MachineInfo",
"fields": [
{
"name": "hostname",
"type": [
"null",
{
"type": "string",
"avro.java.string": "String"
}
],
"default": null
},
{
"name": "address",
"type": [
"null",
{
"type": "record",
"name": "IPAddress",
"doc": "a doc string",
"fields": [
{
"name": "v4",
"type": [
"null",
{
"type": "fixed",
"name": "V4Bytes",
"size": 4
}
],
"default": null
},
{
"name": "v6",
"type": [
"null",
{
"type": "fixed",
"name": "V6Bytes",
"size": 16
}
],
"default": null
}
]
}
],
"default": null
},
{
"name": "amiId",
"type": [
"null",
{
"type": "string",
"avro.java.string": "String"
}
],
"doc": "a doc string",
"default": null
},
{
"name": "instanceId",
"type": [
"null",
{
"type": "string",
"avro.java.string": "String"
}
],
"doc": "a doc string",
"default": null
}
]
},
"doc": "a doc string"
},
{
"name": "updaterVersion",
"type": {
"type": "record",
"name": "SoftwareVersion",
"fields": [
{
"name": "major",
"type": "int"
},
{
"name": "minor",
"type": "int"
},
{
"name": "bugfix",
"type": "int"
},
{
"name": "build",
"type": [ "null", "int" ],
"default": null
},
{
"name": "revision",
"type": [
"null",
{
"type": "fixed",
"name": "GitRev",
"size": 4
}
],
"doc": "a doc string",
"default": null
}
]
},
"doc": "a doc string"
},
{
"name": "bootstrap",
"type": "boolean",
"doc": "a doc string",
"default": false
}
]
}
]
},
{
"name": "name",
"type": {
"type": "string",
"avro.java.string": "String"
}
},
{
"name": "meta",
"type": [
"null",
{
"type": "array",
"items": {
"type": "record",
"name": "ColumnMeta",
"fields": [
{
"name": "columnName",
"type": [
"null",
{
"type": "string",
"avro.java.string": "String"
}
],
"default": null
},
{
"name": "columnType",
"type": [
"null",
{
"type": "enum",
"name": "ColumnType",
"symbols": [ "ARRAY", "BIGINT", "BINARY", "BIT", "BLOB", "BOOLEAN", "CHAR", "CLOB", "DATALINK", "DATE", "DECIMAL", "DISTINCT", "DOUBLE", "FLOAT", "INTEGER", "JAVA_OBJECT", "LONGNVARCHAR", "LONGVARBINARY", "LONGVARCHAR", "NCHAR", "NCLOB", "NULL", "NUMERIC", "NVARCHAR", "OTHER", "REAL", "REF", "ROWID", "SMALLINT", "SQLXML", "STRUCT", "TIME", "TIMESTAMP", "TINYINT", "VARBINARY", "VARCHAR" ]
}
]
},
{
"name": "precision",
"type": [ "null", "int" ],
"default": null
},
{
"name": "scale",
"type": [ "null", "int" ],
"default": null
},
{
"name": "schemaName",
"type": [
"null",
{
"type": "string",
"avro.java.string": "String"
}
],
"default": null
},
{
"name": "catalogName",
"type": [
"null",
{
"type": "string",
"avro.java.string": "String"
}
],
"default": null
},
{
"name": "tableName",
"type": [
"null",
{
"type": "string",
"avro.java.string": "String"
}
],
"default": null
},
{
"name": "isAutoIncrement",
"type": [ "null", "boolean" ],
"default": null
},
{
"name": "isCaseSensitive",
"type": [ "null", "boolean" ],
"default": null
},
{
"name": "isCurrency",
"type": [ "null", "boolean" ],
"default": null
},
{
"name": "isDefinitelyWritable",
"type": [ "null", "boolean" ],
"default": null
},
{
"name": "isNullable",
"type": [ "null", "int" ],
"default": null
},
{
"name": "isReadOnly",
"type": [ "null", "boolean" ],
"default": null
},
{
"name": "isSearchable",
"type": [ "null", "boolean" ],
"default": null
},
{
"name": "isSigned",
"type": [ "null", "boolean" ],
"default": null
},
{
"name": "isWritable",
"type": [ "null", "boolean" ],
"default": null
}
]
}
}
]
},
{
"name": "deletes",
"type": [
"null",
{
"type": "record",
"name": "ResultSet",
"fields": [
{
"name": "columns",
"type": [
"null",
{
"type": "array",
"items": "ColumnMeta"
}
],
"default": null
},
{
"name": "rows",
"type": [
"null",
{
"type": "array",
"items": {
"type": "array",
"items": {
"type": "record",
"name": "Column",
"fields": [
{
"name": "value",
"type": [
"null",
"boolean",
"int",
"long",
"float",
"double",
"bytes",
{
"type": "string",
"avro.java.string": "String"
}
],
"default": null
}
]
}
}
}
],
"default": null
}
]
}
],
"default": null
},
{
"name": "inserts",
"type": [ "null", "ResultSet" ],
"default": null
},
{
"name": "updates",
"type": [
"null",
{
"type": "record",
"name": "UpdateSet",
"fields": [
{
"name": "newRows",
"type": [ "null", "ResultSet" ],
"default": null
},
{
"name": "oldRows",
"type": [ "null", "ResultSet" ],
"default": null
}
]
}
],
"default": null
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment