Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong handling of options for fields of type "bytes"? #91

Open
mortenberg80 opened this issue Sep 14, 2021 · 0 comments
Open

Wrong handling of options for fields of type "bytes"? #91

mortenberg80 opened this issue Sep 14, 2021 · 0 comments

Comments

@mortenberg80
Copy link

I'm having trouble getting correct data into a decimal-field (type=bytes with logical type="decimal") when using kafka-connect-datagen.

{
  "name": "TRANSACTION_AMOUNT",
  "type": {
    "type": "bytes",
    "arg.properties": {
      "options": [
        "10.00"
      ]
    }
  }
},

Gives me the following data: "TRANSACTION_AMOUNT" : "2112617308.64"

This works with the arg-cli, but not in kafka-connect-datagen. Base64-encoding the input does not fix the problem either.

For more detailed information, see my stackoverflow-post:

https://stackoverflow.com/questions/69073874/how-can-i-generate-data-for-a-decimal-field-bytes-with-kafka-connect-datagen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant