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

HeaderToField$Key STRING is not a supported type #100

Open
arnitolog opened this issue May 12, 2023 · 0 comments
Open

HeaderToField$Key STRING is not a supported type #100

arnitolog opened this issue May 12, 2023 · 0 comments

Comments

@arnitolog
Copy link

Hello,

I'm trying to copy the Header value to the key with the transformation below.

    transforms: "CreateDocID"
    transforms.CreateDocID.type: "com.github.jcustenborder.kafka.connect.transform.common.HeaderToField$Key"
    transforms.CreateDocID.header.mappings: "DocId:STRING"

according to the documentation It should work, but I get an error:
Caused by: java.lang.UnsupportedOperationException: STRING is not a supported type.

Is it possible to use this transformation to change the key with value from the header?

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