{"action":"closed","issue":{"url":"https://api.github.com/repos/confluentinc/kafka-connect-datagen/issues/19","repository_url":"https://api.github.com/repos/confluentinc/kafka-connect-datagen","labels_url":"https://api.github.com/repos/confluentinc/kafka-connect-datagen/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/confluentinc/kafka-connect-datagen/issues/19/comments","events_url":"https://api.github.com/repos/confluentinc/kafka-connect-datagen/issues/19/events","html_url":"https://github.com/confluentinc/kafka-connect-datagen/issues/19","id":394516759,"node_id":"MDU6SXNzdWUzOTQ1MTY3NTk=","number":19,"title":"Strange encoding of strings","user":{"login":"mstolin","id":1873375,"node_id":"MDQ6VXNlcjE4NzMzNzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1873375?v=4","gravatar_id":"","url":"https://api.github.com/users/mstolin","html_url":"https://github.com/mstolin","followers_url":"https://api.github.com/users/mstolin/followers","following_url":"https://api.github.com/users/mstolin/following{/other_user}","gists_url":"https://api.github.com/users/mstolin/gists{/gist_id}","starred_url":"https://api.github.com/users/mstolin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mstolin/subscriptions","organizations_url":"https://api.github.com/users/mstolin/orgs","repos_url":"https://api.github.com/users/mstolin/repos","events_url":"https://api.github.com/users/mstolin/events{/privacy}","received_events_url":"https://api.github.com/users/mstolin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-28T00:28:37Z","updated_at":"2019-01-03T23:18:31Z","closed_at":"2019-01-03T23:18:31Z","author_association":"NONE","body":"**My schema:**\r\n```json\r\n{\r\n        \"namespace\": \"dummy\",\r\n        \"name\": \"test\",\r\n        \"type\": \"record\",\r\n        \"fields\": [\r\n            {\"name\": \"ID\", \"type\": \"string\"},\r\n            {\"name\": \"STRING_TEST\", \"type\": [\"string\", \"null\"]}\r\n        ]\r\n}\r\n```\r\n\r\n**Output:**\r\n```\r\n$ docker run -v /home/Workspace/ksql-test/datagen_test/avro:/avro \\\r\n  --network datagen_test_default --rm \\\r\n  --name datagen-dummy \\\r\n  confluentinc/ksql-examples:5.0.0 \\\r\n  ksql-datagen \\\r\n      bootstrap-server=kafka:39092 \\\r\n      schema=/avro/dummy.avro \\\r\n      format=json \\\r\n      topic=dummy.test \\\r\n      key=ID \\   \r\n      maxInterval=100\r\nOutputting 1000000 to dummy.test\r\n[2018-12-28 00:05:35,663] INFO AvroDataConfig values: \r\n\tschemas.cache.config = 1\r\n\tenhanced.avro.schema.support = false\r\n\tconnect.meta.data = true\r\n (io.confluent.connect.avro.AvroDataConfig:179)\r\n#\u0014 \";G\r\n      s --> ([ '#\u0014 \";G\r\n                      s' | '90.Wlj7\u0015\u0016{)I' ]) ts:1545955536472\r\ni2]T\r\n    #Y\u00195rmL\u001A --> ([ 'i2]T\r\n                         #Y\u00195rmL\u001A' | null ]) ts:1545955536554\r\nk(w\u0003\u0018Y\u0012PM --> ([ 'k(w\u0003\u0018Y\u0012PM' | null ]) ts:1545955536570\r\n\u0015\u0001S+o)_\u001C --> ([ '\u0015\u0001S+o)_\u001C' | 'C\u00124v@VC' ]) ts:1545955536586\r\nvCnJt\u001Ab\u0001\r\n{#Ll --> ([ 'vCnJt\u001Ab\u0001\r\n{#Ll' | null ]) ts:1545955536601\r\ngO0r\"@l$Y\\\"s --> ([ 'gO0r\"@l$Y\\\"s' | null ]) ts:1545955536644\r\nm\u0012jvt6p --> ([ 'm\u0012jvt6p' | 'qR+?&' ]) ts:1545955536653\r\n9;tpPm --> ([ '9;tpPm' | null ]) ts:1545955536730\r\n\u001F7~@b\\ --> ([ '\u001F7~@b\\' | 'P$~4MTn*S|)l#u' ]) ts:1545955536757\r\n).\u0003\r\n   \u001A\u0016 v\u001A --> ([ ').\u0003\r\n                    \u001A\u0016 v\u001A' | null ]) ts:1545955536759\r\n\u0014zoyqK1\u001D&\u0016\r\n```\r\n\r\nNumber types work as expected, but it seems that strings get encoded strangely. I have now idea if the error is on my side or on datagen. \r\nBTW: I followed https://docs.confluent.io/current/ksql/docs/tutorials/basics-docker.html to get everything up and running."}}
{"actor":{"display_login":"mstolin"}}