HsbcJone edited a comment on pull request #13296:
URL: https://github.com/apache/flink/pull/13296#issuecomment-698684598


   @caozhen1937  hi   i fork ur code for test  debezium-avro-confluent . i 
debug the source code .but its do not work .
   @wuchong 
   here is the  exception;
   
![image](https://user-images.githubusercontent.com/15171290/94219616-d9b4ee00-ff19-11ea-957d-a1f697b201b0.png)
   
   
   the belows is the 'used topic schema'
   `{
     "connect.name": "sosps.avro.inventory.customers.Envelope",
     "fields": [
       {
         "default": null,
         "name": "before",
         "type": [
           "null",
           {
             "connect.name": "sosps.avro.inventory.customers.Value",
             "fields": [
               {
                 "name": "id",
                 "type": "int"
               },
               {
                 "name": "first_name",
                 "type": "string"
               },
               {
                 "name": "last_name",
                 "type": "string"
               },
               {
                 "name": "email",
                 "type": "string"
               }
             ],
             "name": "Value",
             "type": "record"
           }
         ]
       },
       {
         "default": null,
         "name": "after",
         "type": [
           "null",
           "Value"
         ]
       },
       {
         "name": "source",
         "type": {
           "connect.name": "io.debezium.connector.mysql.Source",
           "fields": [
             {
               "name": "version",
               "type": "string"
             },
             {
               "name": "connector",
               "type": "string"
             },
             {
               "name": "name",
               "type": "string"
             },
             {
               "name": "ts_ms",
               "type": "long"
             },
             {
               "default": "false",
               "name": "snapshot",
               "type": [
                 {
                   "connect.default": "false",
                   "connect.name": "io.debezium.data.Enum",
                   "connect.parameters": {
                     "allowed": "true,last,false"
                   },
                   "connect.version": 1,
                   "type": "string"
                 },
                 "null"
               ]
             },
             {
               "name": "db",
               "type": "string"
             },
             {
               "default": null,
               "name": "table",
               "type": [
                 "null",
                 "string"
               ]
             },
             {
               "name": "server_id",
               "type": "long"
             },
             {
               "default": null,
               "name": "gtid",
               "type": [
                 "null",
                 "string"
               ]
             },
             {
               "name": "file",
               "type": "string"
             },
             {
               "name": "pos",
               "type": "long"
             },
             {
               "name": "row",
               "type": "int"
             },
             {
               "default": null,
               "name": "thread",
               "type": [
                 "null",
                 "long"
               ]
             },
             {
               "default": null,
               "name": "query",
               "type": [
                 "null",
                 "string"
               ]
             }
           ],
           "name": "Source",
           "namespace": "io.debezium.connector.mysql",
           "type": "record"
         }
       },
       {
         "name": "op",
         "type": "string"
       },
       {
         "default": null,
         "name": "ts_ms",
         "type": [
           "null",
           "long"
         ]
       },
       {
         "default": null,
         "name": "transaction",
         "type": [
           "null",
           {
             "fields": [
               {
                 "name": "id",
                 "type": "string"
               },
               {
                 "name": "total_order",
                 "type": "long"
               },
               {
                 "name": "data_collection_order",
                 "type": "long"
               }
             ],
             "name": "ConnectDefault",
             "namespace": "io.confluent.connect.avro",
             "type": "record"
           }
         ]
       }
     ],
     "name": "Envelope",
     "namespace": "sosps.avro.inventory.customers",
     "type": "record"
   }`
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to